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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Exel guru but Power BI newbie needs assistance with Measures

Hello Power BI gurus,

 

I am going round-and-round in circles trying to figure out how to get the results I want in Power BI.  Seems like it should be simple (it certainly is using pivot tables!) but I'm just not knowledgeable enough about DAX or measures to know the trick yet.  

 

I have a table that looks like this:

 

table.PNG

 

I added this table to a Power BI Matrix, and now I want to add a column called "Conversions" which is simply the calculation "Sales/Calls" as a percentage.  Then I want to aggregate it by region, like shown here in this pivot table (where I added "Conversions" as a calculated field):

 

pivot.PNG

 

But I cannot figure out how to do this in Power BI! I keep coming up with weird percentages that don't make sense.  I've done some research and I get the sense that what I want is a measure and not a calculated column, but I'm not at all familiar with DAX enough to know what the correct syntax is to accomplish this.  I'm sure this is easy once you know how, so any help will be greatly appreciated!

 

2 ACCEPTED SOLUTIONS
jthomson
Solution Sage
Solution Sage

What does Conversion = divide(sum[sales],sum[calls]) give you?

View solution in original post

region_percentage.PNG

 

Conversions = DIVIDE(SUM(Table1[Sales]), SUM(Table1[Calls]))


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

4 REPLIES 4
jthomson
Solution Sage
Solution Sage

What does Conversion = divide(sum[sales],sum[calls]) give you?

Anonymous
Not applicable

Here's what I get with that measure:

 

powerbi1.PNG

region_percentage.PNG

 

Conversions = DIVIDE(SUM(Table1[Sales]), SUM(Table1[Calls]))


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

Thank you jthomson & hnguy71!  Those measures worked perfectly once I changed the formatting.  I was unaware of the DIVIDE function, which is where I was going astray.  Thanks again!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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