Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
s15
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
MFelix
Super User
Super User

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
MFelix
Super User
Super User

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



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.