Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi All,
Not sure how I can accomplish this, but in my model I created the following Measures
PrevMoRev (previous month revenue)
PrevYr Rev (previous year revenue)
MoM%
YoY%
_________________________________________________
I have two table visuals.
1. Matrix table with year and month stacked and it contains 4 years of information.
2. Table with just high level year revenue
What I would like to accomplish is to have 3 levels of color where:
1. anything 0% to -25% the cell is yellow
2. anything greather than -25% to -50% is orange
3. anything larger than -50% is red
and I'd like to apply that to the MoM% and YoY% columns in these tables.
Not sure hwo to approach this as a novice to Power BI.
Emma
Solved! Go to Solution.
Hi @emma313823 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
color_mom = SWITCH(TRUE(),
[MoM%]<=0 && [MoM%]>=-0.25,"yellow",
[MoM%]<-0.25 && [MoM%]>=-0.5,"orange",
[MoM%]>-0.5,"red")color_yoy = SWITCH(TRUE(),
[YoY%]<=0 && [YoY%]>=-0.25,"yellow",
[YoY%]<-0.25 && [YoY%]>=-0.5,"orange",
[YoY%]>-0.5,"red")
(3)Set up conditional formatting and then the result is as follows.
If I misunderstand your needs, please clarify in the follow-up reply.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @emma313823 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
color_mom = SWITCH(TRUE(),
[MoM%]<=0 && [MoM%]>=-0.25,"yellow",
[MoM%]<-0.25 && [MoM%]>=-0.5,"orange",
[MoM%]>-0.5,"red")color_yoy = SWITCH(TRUE(),
[YoY%]<=0 && [YoY%]>=-0.25,"yellow",
[YoY%]<-0.25 && [YoY%]>=-0.5,"orange",
[YoY%]>-0.5,"red")
(3)Set up conditional formatting and then the result is as follows.
If I misunderstand your needs, please clarify in the follow-up reply.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Below is a link a folder holding the .pbix file and the connected excel file. Please note the only worksheet connected is Revenue Combined which is highligted in the workbook. There is no sensitive info as I'm just testing out mock numbers.
In the .pbix file if you look at the Revenue MoM% & YoY% page, under formatting, cell elements, I changed the font to blue for the MoM% and YoY% columns. Both the MoM% and YoY% are measures pulled into the tables.
The screenshot below depicts the outcome I am looking for.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |