Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
LLukas
New Member

%GT percentage of grand total - conditional formatting

Hi Can you please advice on following?    I have result values in percentage in column in Matrix Visualization  (I used Show values as percent of grand total in Matrix Visualization) How can I get  conditional formatting of those values in percentage (for example different colours in backround)?

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @LLukas ,

 

Please show more details. What kind of conditional formatting you want, format by color scale or rule?

If you want to format by rule, you will need to create a measure for the percentage of total and use this measure as rule.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@LLukas , conditional formatting should work base on measure value.

Another way is create a color measure like example and use that in conditional formatting with " Field Value" Option

 

Color Date =
var _min =minx(allselected(Date,Date[Year])
return
Switch( true(),
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"lightgreen",
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"blue",
"red")

if(FIRSTNONBLANK('Table'[Value],"true")= "true","green","red")

if(FIRSTNONBLANK(date[date],blank())= today(),"green","red")
if(max(date[date])= tofay(),"green","red")

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

Can you share sample data and expected output?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.