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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ajdm2007
Helper III
Helper III

Calculating percentage difference and add it to the visualization.

Hey everyone,

 

I’ve managed to add several of my metrics to this visualization, but as you can see, I have some labels showing the indicator values for the previous month. What I need is to display the percentage difference between the current indicator value and the label, which shows the value for the previous month, right next to it.

ajdm2007_0-1728345193396.png

 

I imagine I need to create another metric to divide those two values, but the problem is I want the percentage to show next to the label, not below it.

ajdm2007_1-1728345365070.png

 

Any ideas on how to make that happen or if it’s even possible?

 

 

Thanks a lot!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ajdm2007 ,

 

As far as I know, currently Power BI doesn't support us to show different colors for one value by conditional formatting. Here I create a multiple card visual and a new card visual. I think the result of new card visual returned is close to what we need, however all value will return green.

vrzhoumsft_1-1728544569482.png

I think you can try to group two visuals. In my sample, I group a multiple card / new card with a card visual. Result is as below.

vrzhoumsft_2-1728544897418.png

You can download my sample file to learn more details.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

7 REPLIES 7
CKN
Frequent Visitor

if [a] is your value measure and [b] is the % diff, use 

bb = format([b],"#,##0;(#,##0)") to put [b] into parenthesis, then 
c = COMBINEVALUES("  ",[a],[bb]) to put them side by side. Display [c]
If you want colour changes, play around with the format statement in [bb]

Hello @CKN

 

Thank you very much for your recommendation, but there is a detail that is in the image but I did not mention it.

 

If you look at the example you will see that there is a value in red and another in green, so what I did not say is that I need to apply conditional formatting to that percentage, so at some point it can be red and at another time it can be green.

 

Under this scenario, how could I apply your recommendation? Thanks again.

 

Anonymous
Not applicable

Hi @ajdm2007 ,

 

As far as I know, currently Power BI doesn't support us to show different colors for one value by conditional formatting. Here I create a multiple card visual and a new card visual. I think the result of new card visual returned is close to what we need, however all value will return green.

vrzhoumsft_1-1728544569482.png

I think you can try to group two visuals. In my sample, I group a multiple card / new card with a card visual. Result is as below.

vrzhoumsft_2-1728544897418.png

You can download my sample file to learn more details.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

CKN
Frequent Visitor

CKN
Frequent Visitor

CKN
Frequent Visitor

try CONBINEVALUES, using "  " as a delim and your 2 measures as the input expressions. Might need to format your percentage diff measure how you want it to appear first ((), colour etc)

Thanks @CKN you couldnt dumb this down a little for a new user? Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.