Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

powerbi

dax

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; sometimes it just gives result #.## format.

Any idea of how to format a new measure (not column) to be treated as percentage?

like image 492
Dave D. Avatar asked Jul 13 '16 13:07

Dave D.


People also ask

How do you change only some numbers in a column in power BI to percentages?

Try the below steps: Step 1: Select your column name from the field pane (The rightmost area where all the list of tables and fields are visible). Step 2: Go to Modelling tab and see the format of your column. Step 3: just click on a Percentage sign and check your result.

How do I change the format of a new in Power BI?

Within PowerBI, click on the measure and then go to Modeling on the menu. You'll see a Formatting section. Make changes there.

How do I change the measure data type in power bi?

Unders Report tab, If you are using latest desktop with new ribbon preview, when you click on a measure a "Measure tools" menu appears and you could change the data type and no.


2 Answers

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.

Convert to % in Power BI

like image 101
Khurram Arshad Avatar answered Sep 28 '22 04:09

Khurram Arshad


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%")
like image 43
Stephan Avatar answered Sep 28 '22 03:09

Stephan