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.
Good day all, I am pretty sure this is simple but I just cant figure it out. I would like to create a measure that divides the sum of Version 1 by the sum of Version 2. How can I accomplish this?
Source | Amount |
Version 1 | 100 |
Version 1 | 150 |
Version 1 | 200 |
Version 1 | 250 |
version 2 | 320 |
version 2 | 290 |
version 2 | 500 |
version 2 | 610 |
Solved! Go to Solution.
@dw700d ,
Try the below.
DIVIDE(CALCULATE(sum(Table[Amount]),Table[Source] ="Version 1"),CALCULATE(sum(Table[Amount]), fTable[Source] ="Version 2"),0 )
Try not to use FILTER function which cuases the perfomrance issues.
Regards,
Manikumar
Proud to be a Super User!
@dw700d ,
Try the below.
DIVIDE(CALCULATE(sum(Table[Amount]),Table[Source] ="Version 1"),CALCULATE(sum(Table[Amount]), fTable[Source] ="Version 2"),0 )
Try not to use FILTER function which cuases the perfomrance issues.
Regards,
Manikumar
Proud to be a Super User!
@dw700d , Please try a new measure
divide(calculate(sum(Table[Amount]), filter(Table, Table[Source] ="Version 1")),calculate(sum(Table[Amount]), filter(Table, Table[Source] ="Version 2")) )
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 |
---|---|
115 | |
100 | |
88 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |