Forum Discussion

Max_'s avatar
Max_
Icon for Helper I rankHelper I
3 years ago
Solved

How to sort text values from measure by their number values?

Hi everyone, In one of my Power BI reports, I implemented slicer with different formatting options (e.g. revenue in thousands vs. million vs. default) and use a measure to format the values in a mat...
  • daXtreme's avatar
    3 years ago

    FORMAT should not be used on numerical values which you want to sort because it returns text. If you want to implement formatting properly and be able to switch formats using a slicer, you have to use CALCULATION GROUPS. No way around this, I'm afraid. But this requires some knowledge. Please look on YT for videos that demonstrate this. There are plenty of them.