Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I've got a matrix in place at the minute using sub-totals for 10 pieces of data. One value is 13, the other is 11 but this can vary based on user input via filters I have in place.
Is there a way of achieving this using Conditional Formatting? When I go into the options to do this and choose to look at totals only, I have to put in a custom minimum value and maximum value which isn't what I need.
Visual expectation below:
I've been looking through a Microsoft document online which has a limitation of:
Conditional formatting applies only to the values of Table or Matrix visuals, and doesn't apply to any subtotals, grand totals, or the Total row.
This makes me assume I'm unable to achieve this using Conditional Formatting, is there a way of doing this using a measure perhaps?
Solved! Go to Solution.
Hi @Anonymous ,
Try to create the following formula:
Measure =
VAR temp_table =
SUMMARIZE (
ALLSELECTED ( Table[cat]; Table[cat2] );
Table[cat];
"@Total"; SUM ( Table[value] )
)
RETURN
IF ( MAXX ( temp_table; [@Total] ) = SUM ( Table[value] ); 1; 0 )
the use the condititonal formating to equal 0 and 1:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
What is the version of PBI that you are currently using?
If i'm not mistaken starting in May there is the possibility to have conditional formatting on the totals and sub totals.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@Anonymous , I think new version it can apply to sub-totals too
I can add the conditional formatting, the problem is that when I go into the options to do this and choose to look at totals only, I have to put in a custom minimum value and maximum value which isn't what I need.
It needs to be able to look at the values being shown and determine of those, which is the highest and highlight it as such.
Using August 2020 release.
Hi @Anonymous ,
Try to create the following formula:
Measure =
VAR temp_table =
SUMMARIZE (
ALLSELECTED ( Table[cat]; Table[cat2] );
Table[cat];
"@Total"; SUM ( Table[value] )
)
RETURN
IF ( MAXX ( temp_table; [@Total] ) = SUM ( Table[value] ); 1; 0 )
the use the condititonal formating to equal 0 and 1:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |