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
admin11
Memorable Member
Memorable Member

How to make format condition behave when Revenue increase is good and Expense increase is bad ?

Hi All

I have a P&L summary table , the Vari % is compare YTD vs LYTD.

Logically for Rev YTD vs LYTD amount increase , Vari % i can set to text black ground = Green is correct.

As we all know Revenue and Expense are totally different. 

For Revenue increase is good.

But for Expense increase is bad.

Can some one share with me how to make Expense drop is good and Revenue drop is bad ?

 

admin11_0-1614402747192.png

 

https://www.dropbox.com/s/g4za059a0jc9vcd/PBT_V2021_339%20ask%20how%20to%20make%20expense%20blackgro...

My PBI file

 

Paul

 

1 ACCEPTED SOLUTION
jaideepnema
Solution Sage
Solution Sage

Hi @admin11 ,

Create a measure like this

Color Code = SWITCH(SELECTEDVALUE(GL_Table_EXP[REV&COGS]),

"REV",IF([Vari %]*100>1,1,0),

"COGS",IF([Vari %]*100>0,1,0),

"EXP",IF([Vari %]*100<0,1,0),0)

and then on the table apply a conditional formatting on the background like thisCapture.PNG

This will give you the desired results:
Capture 2.PNG

 

 

 

 

 

 

 

 

 

 

 

Please accept this a solution if your question has been answered !!

Appreciate a Kudos 😀

View solution in original post

2 REPLIES 2
jaideepnema
Solution Sage
Solution Sage

Hi @admin11 ,

Create a measure like this

Color Code = SWITCH(SELECTEDVALUE(GL_Table_EXP[REV&COGS]),

"REV",IF([Vari %]*100>1,1,0),

"COGS",IF([Vari %]*100>0,1,0),

"EXP",IF([Vari %]*100<0,1,0),0)

and then on the table apply a conditional formatting on the background like thisCapture.PNG

This will give you the desired results:
Capture 2.PNG

 

 

 

 

 

 

 

 

 

 

 

Please accept this a solution if your question has been answered !!

Appreciate a Kudos 😀

@jaideepnema 

Your solution alway give me surprise , because it is so intelligent.

Thank You

Paul

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.