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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Resolver V
Resolver V

try this: 

Measure =

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.