This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 27 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 49 | |
| 32 | |
| 27 | |
| 22 |