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
case
when ( ?Sort Prompt? = 'By Cases' )
then ( [ALL Cases] )
when ( ?Sort Prompt? = 'By Skus')
then ( [CY SKU] )
when ( ?Sort Prompt? = 'By Active Skus')
then ( [CY Active SKU] )
else
([Active SKU Change] )
this cognos Statement please convert to dax.
end
Solved! Go to Solution.
Hi there!
use SWITCH statement like this:
SWITCH(
TRUE(),
?Sort Prompt? = "By Cases", ( [ALL Cases] ),
?Sort Prompt? = "By Skus", ( [CY SKU] ),
?Sort Prompt? = "By Active Skus", ( [CY Active SKU] ),
([Active SKU Change] )
)
Let me know if that helps!
Hi there!
use SWITCH statement like this:
SWITCH(
TRUE(),
?Sort Prompt? = "By Cases", ( [ALL Cases] ),
?Sort Prompt? = "By Skus", ( [CY SKU] ),
?Sort Prompt? = "By Active Skus", ( [CY Active SKU] ),
([Active SKU Change] )
)
Let me know if that helps!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |