cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Convert a numeric to percetange after using measure

I have two values: Sales and Gross Sales. I created a measure to calculate the margin. The measure looks like below

 

Margin = 100 - (SUM(financials[ Sales])/SUM(financials[Gross Sales])*100)

 

margin.PNG

 

 

Is there a way to display the value in percentage. It's 7.20%

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User V
Super User V

Re: Convert a numeric to percetange after using measure

Hi @s15,

 

First of all change your measure to: 

Margin = 1 - (SUM(financials[ Sales])/SUM(financials[Gross Sales]))

Then just select the measure and on the bar choose Modeling and Percentage and your measure will be in %.

 

percentagew.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

1 REPLY 1
Highlighted
Super User V
Super User V

Re: Convert a numeric to percetange after using measure

Hi @s15,

 

First of all change your measure to: 

Margin = 1 - (SUM(financials[ Sales])/SUM(financials[Gross Sales]))

Then just select the measure and on the bar choose Modeling and Percentage and your measure will be in %.

 

percentagew.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors