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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lucasneedhelp
Helper I
Helper I

Unable to compare Act vs. Bud when there's both number and percentage

Hi guys,

I'm stuck with a DAX expression here when comparing actuals vs. budget that contain both number and percentage.

 

The formular i use to get Actual and Budget is:

SWITCH(
    SELECTEDVALUE('P&L Structure'[P&L Description]),
    "Event Delivery Margin $", FORMAT(CALCULATE([Event Delivery Margin $],ALL('P&L Structure')),"#,##0,.0"),
    "Event Delivery Margin %", FORMAT(CALCULATE([Event Delivery Margin %],ALL('P&L Structure')),"0.0%"))
so that I can have both number and percentage in my Matrix visual like below
lucasneedhelp_0-1673238625696.png
then i use iserror(value(),blank()) to convert text to value, so that i can do another measure to compare act vs. bud, but it only returns number and leaves % as blank
 
any idea why it happens and how can i correct it?
 
thanks heaps!!!!!!
1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@lucasneedhelp  can share your measure to compare act vs. bud.

View solution in original post

2 REPLIES 2
Mahesh0016
Super User
Super User

@lucasneedhelp  can share your measure to compare act vs. bud.

Hi Mahesh0016

sorry for the late response. new to the forum.

i've figured this out 

thanks anyway 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.