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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
zraopingm
Helper I
Helper I

switch with in Dax

Hello community 

can someone please point out why the first formula does not work inmage1.. image 2 works fine.

thank you - Zoey

zraopingm_0-1713982280624.png

 

zraopingm_1-1713982297023.png

 

 

 

1 ACCEPTED SOLUTION
MNedix
Solution Supplier
Solution Supplier

@zraopingm  use curly brackets instead of the rounded ones (e.g: {7,8,9} )

View solution in original post

2 REPLIES 2
MNedix
Solution Supplier
Solution Supplier

@zraopingm  use curly brackets instead of the rounded ones (e.g: {7,8,9} )

Alex87
Solution Supplier
Solution Supplier

try this: 

Measure =

SWITCH(
TRUE(),
'Date'[MonthNo] = 7 || 'Date'[MonthNo] = 8 || 'Date'[MonthNo] = 9, "Q4",
"Other Quarter" 
)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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