Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Ning_pbi
Regular Visitor

SWITCH

I tried to use SWITCH(<expression>, <value>, <result>[, <value>, <result>]…[, <else>]) to fulfill the following logic, but failed.

 

case

when <expression> = <value1> then <result1>

when <expression> = <value2> then <result2>

....

else <expression>

 

1 REPLY 1
Ning_pbi
Regular Visitor

problem solved.  the dax works, I noticed that I did not clear the filters. 

Thank you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.