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
I've been attempting to add the value of 2 columns together into one column called Percentage, but have had no success. Here's the formula I am using:
Percentage = CALCULATE(SUM(Appearances[Winner]) / Appearances[Loser]+Appearance[Winners)
What am I doing wrong?
Thanks!
Solved! Go to Solution.
I bet you got an incredibly long error message with a long list of possible reasons why your measure would not work.
This message means you can only reference a column (like Appearances[Loser]😞
- when a row context exists (in the second argument of a FILTER, SUMX, ...., function)
- in an aggregate function like SUM, MIN, MAX, ...
- inside functions like VALUES, ALL, DISTINCT, FILTERS ...
In your case, you probably meant, :
CALCULATE( SUM(Appearances[Winner])
/ (
SUM(Appearances[Loser])
+SUM(Appearance[Winners)
)
)
I have one column where I added together Up and Built. Now I need to get the percentage up. But it is giving me an error. What am I doing wrong?
I bet you got an incredibly long error message with a long list of possible reasons why your measure would not work.
This message means you can only reference a column (like Appearances[Loser]😞
- when a row context exists (in the second argument of a FILTER, SUMX, ...., function)
- in an aggregate function like SUM, MIN, MAX, ...
- inside functions like VALUES, ALL, DISTINCT, FILTERS ...
In your case, you probably meant, :
CALCULATE( SUM(Appearances[Winner])
/ (
SUM(Appearances[Loser])
+SUM(Appearance[Winners)
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |