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
IF
Post Prodigy
Post Prodigy

Categorization of data and background color

Hi,

 

I want to use a visual that shows salary vs. performance. I have the Result table:

IDPerformanceSalary
A124015000
A234515000
A225518000
A146016000
A166515000
A3110020000
A329018000
A339016500
A349517000
A357016000
A367517000
A378015000

 

I want to group them:

Salary<10000Low
 10001-14000Normal
 14001-18000High
 >18001Very High
   
Performance<50Low
 51-65Normal
 66-85Good
 >86Very Good

 

And I want to show them in power bi:

Background example2.jpg

 

I tried with scatter chart and used a background image but it didn't work. Do you have any opinion how I could do it?

 

All the best,

1 ACCEPTED SOLUTION

@IF 

There are no visuals that can show the layout you need as far as I checked. The matrix solution I provided should work well enough for you. I have added the tooltip using a tooltip page and you can include other information as well.  Hope you can accept this for your solution.

You can download the file: HERE


 

Fowmy_0-1598355613399.png

________________________

If my answer was helpful, please mark this post as a solution, this will also help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube
LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

11 REPLIES 11
Fowmy
Super User
Super User

@IF 

What do you need to show on the chart? is the count of employees who fall into each corresponding category or anything else?

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks for the answer. I want to show the values for salary and performance for each person.

Background example3.jpgBackground example4.jpg

However I want have a background colour at the graph. If performance and salary is in the category, then it is red. Similarly if one of them is low than it is gray colour.

Background example2.jpg

@IF 

You can download the file: HERE

Fowmy_0-1598262851208.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi,

Thanks. would it be possible to show it in a chart. I want to show the values (salary and performance) in X and Y axis. Also when I hover on the ID, I want to see the salary and performance values in tooltip.

Regards,

@IF 

Not quite clear about your requirement.

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi,

Instead of showing the values in the relevant categories, I want to show the ID numbers in a graph. For example;

Background example11.jpgBackground example12.jpg

It is more X and Y axis. I want to show the ID numbers under the relevant categories. When I use scatter chart, it doesn't categorize the salary or performance scale or I don't know how to do it. I hope it is clear now.

 

Regards,

@IF 

Hope you get the desired result as below:

You can download the file: HERE

Fowmy_0-1598350864223.png

________________________

If my answer was helpful, please mark this post as a solution, this will also help others!.

Click on the Thumbs-Up icon if you like this reply 🙂



YouTube
LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi,

 

It is exactly like that 🙂 , but I want to show it in a chart. Would it be possible? The only reason that I want it in chart is that when I hover on the ID, I want to see the name, surname, etc. information. It is easy to add it with chart, but maybe possible with matrix as well.

 

All the best

@IF 

There are no visuals that can show the layout you need as far as I checked. The matrix solution I provided should work well enough for you. I have added the tooltip using a tooltip page and you can include other information as well.  Hope you can accept this for your solution.

You can download the file: HERE


 

Fowmy_0-1598355613399.png

________________________

If my answer was helpful, please mark this post as a solution, this will also help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube
LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi,

 

Thanks a lot. It is good to know the limits. btw, the tooltip doesn't show correctly when nothing is selected.

amitchandak
Super User
Super User

@IF , Not very clear . Try segmentation 

https://www.daxpatterns.com/dynamic-segmentation/
https://www.daxpatterns.com/static-segmentation/
https://www.poweredsolutions.co/2020/01/11/dax-vs-power-query-static-segmentation-in-power-bi-dax-po...
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

and color measure with

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

 

Colour = 
SWITCH(TRUE(),
Table[Date] < TODAY(), "red",
Table[Date] = TODAY(), "orange",
"green")

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))

Color  = if(FIRSTNONBLANK(Table[Year],2014) <=2016 && AVERAGE(Sales[Sales Amount])<170 
,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))
Color sales = if([Sales Today] -[sales yesterday]>0,"green","red")

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"
)

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.