Forum Discussion
enter value name fields in two lines for matrix
Hello Team,
I have one matrix with 3 rows as measures like sales realted , profit related and discount related. And i am having columns as last 12 months periods. for these 3 rows we divided color code based on ranges like for profit related <60 % red , >60 % and <80 % orange and >80% green.
I have done color change but one more component like we should insert color code range in row names like below
Month1 Month2 Month3 Month4 Month4 Month5 ...........
Sales :-
Profit:-
<60 % red , >60 % and <80 % orange and >80% green.
Discount:-
is there any possibility to enter in name fileds to insert that values also or any alternative approach??
2 Replies
- amitchandak
Super User
sampathK , Can you share sample data and sample output in a table format?
Ashish_Mathur has shared a similar solution a couple of days back. Ashish can help with this?
you need to have color measure use that as field option
color = switch ( true(), FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen", FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen", /// Add more conditions "red" )https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values - Ashish_Mathur
Super User
Hi,
I do not understand your question. Share some data and clearly show the expected result.