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! It's time to submit your entry. Live now!
Solved! Go to Solution.
can you try. You need to pass on scalar value and not a column in SWITCH
SWITCH(TRUE(), MAX(tbl[SPI])....)
or
SWITCH(TRUE(), CALCULATE(MAX(tbl[SPI]))....)
IF there's only 1 case in the SWITCH, use an IF statement.
I think this will give you a clearer error message.
can you try. You need to pass on scalar value and not a column in SWITCH
SWITCH(TRUE(), MAX(tbl[SPI])....)
or
SWITCH(TRUE(), CALCULATE(MAX(tbl[SPI]))....)
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 8 | |
| 7 |