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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

condtional FORMAT_STRING from MDX expression not working on charts

Hi everyone,

 

I have a MDX measure with a conditional format_string value:

5.JPG

I expect to see numbers displayed differently according to the selected [IndicatorType] value:

  • if [IndicatorType] = "Units" -> 6.895 (with thousand separator)
  • if [IndicatorType] = "Values" -> 6.895,0 (with thousand separator and 1 digit in decimal position)

this particular conditional format_string works on table visuals but does not work on charts. It appears that in charts I do not have any formatting at all and obtain numbers without thousand separators and or decimal places (e.g. 6895)

 

The issue is related specifically to conditional FORMAT_STRING. If I don't put a case after FORMAT_STRING I can see the proper fomatting in charts as well.

 

here some data in chart form with no formatting:

1.JPG2.JPG

hwew same data in table form, with correct formatting:

3.JPG4.JPG

does anyone have a solution or a workaround for this?

thank you very much,

Pietro

11 REPLIES 11

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors