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.
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:
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):
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!
Solved! Go to Solution.
What does Conversion = divide(sum[sales],sum[calls]) give you?
Conversions = DIVIDE(SUM(Table1[Sales]), SUM(Table1[Calls]))
What does Conversion = divide(sum[sales],sum[calls]) give you?
Here's what I get with that measure:
Conversions = DIVIDE(SUM(Table1[Sales]), SUM(Table1[Calls]))
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |