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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
zraopingm
Helper II
Helper II

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 Specialist
Solution Specialist

try this: 

Measure =

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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