Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 39 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 37 | |
| 35 | |
| 26 |