Forum Discussion

ehartanto's avatar
ehartanto
Frequent Visitor
5 years ago
Solved

Multiple Number Format in the Same Column

Hello, 

 

I am having difficulty having multiple number formats in the same column. I had it in the same column for drilling down and filtering purposes from different entities. For example, here is my data. I wanted occupancy rate, % margin to show in percentage whereas rental rate and margin to be in numerical form with one decimal place. Is there any way I could achieve this?

Metric                  Amount
Occupancy           0.8

Rental Rate          60.1

Margin                 20.6
% Margin             0.2

 

Thanks in advance!

  • Anonymous's avatar
    Anonymous
    5 years ago

    ehartanto 

    You can create a measure with multiple format.

    Measure = SWITCH(MAX('Table'[Metric]),
    "Occupancy",FORMAT(SUM('Table'[Amount]),"Percent"),
    "% Margin", FORMAT(SUM('Table'[Amount]),"Percent"),
    SUM('Table'[Amount]))


    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    ehartanto 

    You can create a measure with multiple format.

    Measure = SWITCH(MAX('Table'[Metric]),
    "Occupancy",FORMAT(SUM('Table'[Amount]),"Percent"),
    "% Margin", FORMAT(SUM('Table'[Amount]),"Percent"),
    SUM('Table'[Amount]))


    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • noparking's avatar
      noparking
      Regular Visitor

      This is exactly what I needed and it's a simple solution. Thanks!!

    • oremo's avatar
      oremo
      Regular Visitor

      apology if i hijacked this thread. I've managed to do this and happy to share my one. $,%, and many others. got one dynamic columns that dynamically took place for my more than 15 measures.

       

      the one that i can't get around is the Style Icon. like for:

      sales - use bar icons

      percentage - use arrows growth icons.

      and many more.. totally stucked with this :)... any tip? if i have to create my own external.. what research i need?