Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Abysshek
Regular Visitor

Conditional formatting of values of one matrix with respect to the values in another matrix

Hi everyone,

I'm trying to highlight the values which are lower than the target value with red and above the target value with green.

Abysshek_0-1713337236966.png

P.S. the TAT 4,7,13D are measures of say Table A and Target is the column of Table B. Is there a way to compare both?

Thanks,

Abhishek

3 REPLIES 3
Abysshek
Regular Visitor

I've tried this and got this result but it is valid for first category only.

TAT 13D highlight = IF(
    CALCULATE([TAT 13D]<SELECTEDVALUE('Target FY22'[Target]),'Target FY22'[Parameter]=">13D",'Target FY22'[Category]="LCD"),"#FF0000","#008000")
TAT 7D highlight = IF(
    CALCULATE([TAT 7D]<SELECTEDVALUE('Target FY22'[Target]),'Target FY22'[Parameter]="TAT1_7D",'Target FY22'[Category]="LCD"),"#FF0000","#008000")
TAT 4D highlight = IF(
    CALCULATE([TAT 4D]<SELECTEDVALUE('Target FY22'[Target]),'Target FY22'[Parameter]="TAT4D",'Target FY22'[Category]="LCD"),"#FF0000","#008000")
Abysshek_0-1713351725279.png

 

ChiragGarg2512
Super User
Super User

-> If the target value is constant, use rules in background coloring in the cell element.

-> If the target is variable, create a measure using the switch statement. And apply it to the field format style.

Can you suggest the dax for second one

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.