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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.