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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mdaamirkhan
Post Prodigy
Post Prodigy

How optimize KPI Color dax

HI All,

I wrote below two dax to highlight <0 red but it slow down the report. Can you help me how to optimized the dax to make it faster

 

1. KPI Color QV =

IF(If(max('wt_fin_staging pl_sorting'[Account_Type])=1 , _Measures[_Reporting Cycle_Q] - [_Vs Reporting Cycle_Q],  [_Vs Reporting Cycle_Q] -_Measures[_Reporting Cycle_Q])<0,0,1)

to highlight <-100% and <0
2. KPI Color QV% =

IF(_Measures[_Variance %_Q] = "<-100%" || _Measures[_Variance %_Q] < 0,0,1)


Thanks
Aamir


2 REPLIES 2
mdaamirkhan
Post Prodigy
Post Prodigy

any update

Fowmy
Super User
Super User

@mdaamirkhan 

I trying understand the logic that you are trying to apply in these measures, please provide more details and share a dummy file with the scenario

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.