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

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.

Reply
sampathK
Employee
Employee

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 2
Ashish_Mathur
Super User
Super User

Hi,

I do not understand your question.  Share some data and clearly show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
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-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.