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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Bug in April 2023 update

Hi All,

I have tried the new Dynamic format strings for measures but due to some incorrect formats i have rolled it back to the original format. the issue is that the measure displayed now not as before. see pics for refferences. how can i revert it back ??

Thanks, powerbidsm.png

5 REPLIES 5
Mahesha_Krishna
New Member

I have tried the new Dynamic format strings for measures but have noticed for few of the numbers (% Ratings) in dashboard show wrong values. If you check in the attached Dashboard, if the % Rating is 10%,20%,30%,40%,50%,60%,70%,80%,90% or 100% then the rating is multiplying with 11. Example if the Rating is 0.6(60%) then it display 660%. Apart from these rounding rating numbers everything else display perfectly. Even the bar size looks fine. see pics for refferences.

 

- creating measure for % Rating with Dynamic format

Mahesha_Krishna_7-1688672559873.png

 

 

- Selecting the format and specifying format for the % Rating and adding if the % Chg is >1.645 then Green dot, <1.645 Red Dot else nothing.

 

Mahesha_Krishna_8-1688672598091.png

 

 

 

-  Created the Matrix view with bars as conditional format for values(%Rating). Here for Measure_1 BB it's 660% but actaul value is 60% and for Measure_2 all are 100% but display as 1100% means it's multiplying 11.

Mahesha_Krishna_9-1688672623050.pngMahesha_Krishna_10-1688672655074.png

 

Mahesha_Krishna_11-1688672670473.png

 


  

 


  

 


  

 

- But for Measure_7 all the values looks fine because values are not in the range of 10%,20%,30%,40%,50%,60%,70%,80%,90% or 100%

Mahesha_Krishna_12-1688672692637.png

 


  

 

 

It's crucial for our Dashboards, please help ?

 

 

Hi @Mahesha_Krishna 

In general, the format string expression should be designed to return the intended format string, rather than a formatted value.

Since your current expression returns a formatted value (using the FORMAT function), the resulting string is itself is being interpreted as a format string.

 

Taking the example where % Rating = 0.6:

  1. The format string expression returns "60%"
  2. This is itself interpreted as a format string. Since "6" has no special meaning in format strings, it is treated as a literal character, and the following "0%" is replaced by the formatted value "60%".
  3. Putting these together, the result is the unwanted "660%"

I suggest using an expression like this instead (I have edited the code slightly to use SWITCH instead of nested IF, and I might have the wrong circle characters):

 

VAR Wt = [% Rating]
VAR T1 =
    SUM ( Sheet1[%Chg] )
VAR Result =
    "0%"
        & SWITCH (
            TRUE (),
            T1 > 1.645, " 🟢",
            T1 < -1.645, " 🔴"
        )
RETURN
    Result

 

 

Regards

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi @OwenAuger Excellent! and Thank you so much. It's worked as expected. 

Vilmar
Resolver I
Resolver I

I think it's a bug, but see if it helps.

 

  • Click on the option you want to return;
  • The message to change the format will appear. Click "change";
  • Click again on Dynamic
    Obs.: Any alteration of this measure will have to do this

 

Video here 

Greg_Deckler
Community Champion
Community Champion

@Anonymous I have confirmed this. It appears that once you set your Dynamic format string that even when you change it back to Whole number for example and it says that you will lose your dynamic format string that the dynamic format string is still somewhat in effect. I would log this in the Issues forum. 

 

To get your original format back, switch the format back to Dynamic once again. This will give you the base format of "0". Then, switch the format back to Whole number. This will remove any vestiges of the original dynamic format string.

 

I'm just guessing but I'm thinking that perhaps dynamic format strings work by creating an Annotation on the measure and that removing the annotation is somehow not working correctly. Just a guess though.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.