Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
111 | |
73 | |
64 | |
46 |