Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello,
I have a Measure configured like this, which is to return back a background color for the following conditions:
IF Scheduled Qty> 0 and Scheduled Qty= Completed Quantity then green
If Scheduled Qty> 0 and Completed Qty >0 and Completed Quantity < Scheduled Quantity, Dark Blue,
White.
Solved! Go to Solution.
Try using && instead of & . Also, you should pre-calculate your MAXX expression as variables first, so that you don't recalculate them multiple times and hurt performance.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Try returning your first two variables instead of the last one to troubleshoot. Those are returning a Max value while the visual is likely showing the sum of that column. If you replace MAXX with SUMX, it work as expected.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Try using && instead of & . Also, you should pre-calculate your MAXX expression as variables first, so that you don't recalculate them multiple times and hurt performance.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
This seems to work:
The issue I have though, is it does not rollup with the matrix: for example the 9 and the six values should be dark blue, not green, per this code:
This is a better picture... to demonstrate... the issue, and the travel and setup item should be dark blue as well.