Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Example to undersatnd the data:-
60 is the total Model Allocated capacity of Models 855 and N14 both under S/N 1. Similarly 72 is Model Allocated capacity of Models QSM15 under S/N 2.
Question:-
Total demand on 24-09-02 for S/N is 47 but total allocated capacity is 60. So, demand is less than capacity.
If total demand is less than allocated capacity then output should be 0, if it is greater than allocated capacity then output should be 1. Ignore Backlog in it.
I want to use conditional formatting "Background color" in Matrix visual. So, I will denote 0 as red, 1 as green in background color.
Please help me in it.
Hi @Anonymous ,
Does the information provided by suparnababu8 help you solve your problem? If it helps, please accept the responses you find helpful as solution.
Best regards,
Albert He
Hi @Anonymous
To achieve the desired conditional formatting in Power BI, you can create a measure that checks whether the total demand is less than or greater than the allocated capacity and then apply conditional formatting based on this measure. Here’s how you can do it:
Create a Measure to Compare Demand and Capacity:
DemandVsCapacity =
IF(
SUM('YourTable'[TotalDemand]) <= SUM('YourTable'[AllocatedCapacity]),
0,
1
)
Apply Conditional Formatting:
DemandVsCapacity =
IF(
SUM('YourTable'[TotalDemand]) <= SUM('YourTable'[AllocatedCapacity]),
0,
1
)
Select the Matrix Visual:
Open the Format Pane:
Conditional Formatting:
This setup will ensure that your matrix visual highlights cells in red when the demand is less than the allocated capacity and in green when the demand is greater than the allocated capacity.
Any help please?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 24 | |
| 18 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 65 | |
| 41 | |
| 40 | |
| 39 | |
| 39 |