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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
cristianml
Post Prodigy
Post Prodigy

Change FORMAT in Dax

Hi,

I want to change the format in dax using FORMAT fuction but is not working :

VAR _3 = FORMAT([_Actual + Backlog CI %],"0%")

 

cristianml_0-1649908196842.png

Could you help me to identify the cause ?

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@cristianml , You should format all three so that you get a text from all three.

 

You can also explore calculation groups

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

View solution in original post

PC2790
Community Champion
Community Champion

Hi @cristianml ,

 

Check first if the measure - [_Actual + Backlog  CI%] is giving you any result. Looks like youare trying to add a number to a percentage value.

You can also try:

DIVIDE(Numerator,Denominator) and the in the Measure Formatting Tools, formatting it to a percentage value.

View solution in original post

5 REPLIES 5
PC2790
Community Champion
Community Champion

Hi @cristianml ,

 

Check first if the measure - [_Actual + Backlog  CI%] is giving you any result. Looks like youare trying to add a number to a percentage value.

You can also try:

DIVIDE(Numerator,Denominator) and the in the Measure Formatting Tools, formatting it to a percentage value.

Hi @PC2790 ,

 

The measures works fine. No problema with that. se below:

cristianml_0-1649974889449.png

 

The problem is that I need to change the format but with FORMAT Funcion is not working:

 

 

 

Without FORMAT:

cristianml_1-1649974953530.png

 

With FORMAT:

cristianml_2-1649975010339.png

 

Same with Tabular Editor:

cristianml_3-1649975049619.png

 

Hey @cristianml ,

 

For future, can you elaborate what turned out to be the issue?

Is it because the percentage value is going out of range of the graph?

amitchandak
Super User
Super User

@cristianml , You should format all three so that you get a text from all three.

 

You can also explore calculation groups

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Hi @amitchandak ,

 

I tryed but still not working. I need to change it to percent format, only the 3rd Var

 

 

cristianml_4-1649975896667.png

 

cristianml_5-1649975916106.png

 

 

with FORMAT :

cristianml_6-1649975976134.png

 

Also I use same measure in visual but not sure why are showing different format. Even if the Format is in %

cristianml_8-1649976918841.png

 

 

cristianml_7-1649976852118.png

 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.