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
Why is the variable 'calc' greyed out at the bottom?
Hi, @airwolf39
Try to put var calc = ..... just below measure name, and first SWITCH after return
Measure =
var X = [....]
var Y = [,,,,,]
RETURN
SWITCH....
Proud to be a Super User!
The total is now wrong because the variable is outside of the isinscope function
Text like VAR xyz = [...] cannot be inside, they should stay isolated and used the name xyz in expressions.
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 165 | |
| 132 | |
| 118 | |
| 79 | |
| 53 |