Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Power BI table conditional formatting Based on another Column

I Have these data

StartDate   ,EndDate
03/01/2022, 06/01/2022
09/01/2022, 24/01/2022
20/01/2022, 27/01/2022
10/01/2022,22/01/2022
03/01/2022, 17/01/2022
28/01/2022, 20/01/2022
22/01/2022, 18/01/2022
28/01/2022, 05/01/2022
06/01/2022, 30/01/2022
10/01/2022, 18/01/2022
20/01/2022, 14/01/2022
12/01/2022, 11/01/2022
23/01/2022, 01/01/2022
09/01/2022, 06/01/2022

I want to format the Endate column as follows

IF StartDate > EndDate THEN Blue else green

Expected output
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Create a measure:

Measure = IF(MAX(Table1[StartDate]) > MAX(Table1[EndDate]),1)

Go to cell elements for End Date

enter image description here

Complete as follows:

enter image description here

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading