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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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