Power BI-Conditional format a total by category based on thresholds in another table

Tlewman

Board Regular
Joined
Dec 29, 2002
Messages
67
This is the way it would look in excel, but I need to replicate in PBI.

I have two tables, a sales table and a threshold table.
I need to sum the sales of each fruit by section, then apply conditional formatting based on the thresholds in the second table.
ex:
ss 08302024.png
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Generally speaking, you can load the sales table and threshold table into PBI.
Create a relationship between threshold and sales on fruit
Create the output table using the section, fruit from threshold and sales
Write a measure that returns the min threshold (test it in the table). Do the same for max threshold.
Once you can see these measures working in your output table, add conditional formatting using a rule that references the measures.
 
Upvote 0
I have the tables loaded, relationships built and and have the output data. The final view I have is the one above w/the three columns on the right... minus the formatting.
I am stuck trying to figure out how to make the formula work so that I can use it in a rule for formatting.
 
Upvote 0
This is a mock up of my current output, using basic rules to conditionally format. I need to be able to add a different set of rules to each fruit.
ss2.png
 
Upvote 0
You should be able to add a compound rule where you select the threshold from the measure and the result of the column, which would be the type of fruit.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top