How to format new measure (not column) in power BI as percentage?

后端 未结 2 727
生来不讨喜
生来不讨喜 2021-01-11 23:38

When I create a new measure with formula, i.e. sum(col1)/max(col2), it automatically converts the result into #.#% format. Strangely, it doesn\'t happen all the time; someti

相关标签:
2条回答
  • 2021-01-12 00:29

    In Power BI there is a option in the taskbar when you enter your measure.

    In Power Pivot for Excel you can select the format directly in the measure editor (Or editor for calculated fields. The name depends on your version of Excel)

    If you want to take over manually you can also use the Format() formula:

    = FORMAT(Sum(Table[Field]),"0.00%")
    
    0 讨论(0)
  • 2021-01-12 00:30

    There is another way to convert the value into % in Power BI Desktop.

    1. Create a measure with simple Divide formula
    2. Click on the name of measure in FIELDS section
    3. Go to Modeling tab and select % sign in Formatting section

    The field will automatically be converted to % value.

    0 讨论(0)
提交回复
热议问题