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,
I have created a table which aggregates the sum of Units, Call, and Accounts based on Campaign. I'm trying to display a conversion value where the calculation is dependent on the Campaign.
If the Campaign is Radio, the conversion formula is: Units / Calls
If the Campaign is Print, the conversion formula is: Units / Accounts
It seems that my attempts at the Conversion column evaluate each row and fails because many rows include 0 in the Calls or Accounts column. I'd like to just divide by the aggregated value of Calls or Accounts. Any ideas?
Campaign | Units Sold | Calls | Accounts | Conversion If Radio, Units / Calls If Print, Units / Accounts |
Radio | 100 | 200 | 350 | 0.5 |
200 | 200 | 1000 | 0.2 |
Thank you!
Maggie
Solved! Go to Solution.
I solved this by adding a new column = to sum of calls if the campaign is Print and sum of accounts in the the campaign is Radio. I then used this column as the denominator in my divide by function and used a sum aggregation on the column containing the divide function.
I solved this by adding a new column = to sum of calls if the campaign is Print and sum of accounts in the the campaign is Radio. I then used this column as the denominator in my divide by function and used a sum aggregation on the column containing the divide function.
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 |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |