Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a measures table that contains the below columns
KPI Name
Numerator
Denominator
IsRate
I would like to create a single Measure in Power BI that calculates a summarized value based on the value in IsRate. For example, if the value in IsRate = 'No', I would like to use SUM(Numerator). And if the value in IsRate = 'Yes', I would like to use SUM(Numerator)/SUM(Denominator).
I have tried multiple ways to do this but I can't get the syntax to work. Any ideas?
TIA!
Dan
Solved! Go to Solution.
@Anonymous , try like
sumx(Table, if(Table[IsRate] = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))
or
if(max(Table[IsRate]) = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))
@Anonymous , try like
sumx(Table, if(Table[IsRate] = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))
or
if(max(Table[IsRate]) = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |