Forum Discussion

Rudz's avatar
Rudz
Kudo Collector
3 years ago
Solved

FORMAT bug

According to the documentation, the FORMAT function takes as input "A custom format expression for numbers can have from one to three sections separated by semicolons." If three sections, "The first ...
  • OwenAuger's avatar
    3 years ago

    Rudz - this is indeed troubling. 

    I tested this myself on dax.do (Azure Analysis Services) and Power BI Desktop/Service, and see exactly the same behaviour as you've described.

     

    The good news is that format strings (such as the one you posted) appear to behave correctly when applied as the format string of a numerical measure or column.

     

    However, I share your frustration that FORMAT doesn't behave as documented, and for now we'll have to be extra cautious when using it. I'm happy to log this as a bug in the meantime.