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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rode
Advocate II
Advocate II

Conditional format (modeling) of number

Hi everyone.

In a report I've defined a measure as follows:

Measure = IF('TabFlag'[Flag]="Abs"; [KPI Absolute]; [KPI Percentage])

And I've associated a slicer to the flag, which allows the user to choose between KPI Absolute and KPI Percentage (which are two different measures).

I want to show the measure in a bar chart, but the problem is that it's not possibile to me to give the right formatting of the number: I would like that the value of Measure is showed as a whole number if the absolute form is selected, and that the same Measure is showed as a percentage if the other option is preferred.

I've tried using the FORMAT DAX function, but it return a string, which cannot be represented in the bar chart, so it does not suit at all.

 

Thanks.

3 REPLIES 3
rode
Advocate II
Advocate II

I've found out that the feature I'm searching for is not available in Power BI right now. But there in an idea about this.

Hi @rode,

You can vote the feature  and add comments in the link above. Your support will make our product better. Thanks a lot.

 

Best Regards,
Angelia

Already done! Thanks 🙂

Helpful resources

Announcements
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.