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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
zraopingm
Helper IV
Helper IV

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
Super User
Super User

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



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

2 REPLIES 2
MNedix
Super User
Super User

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



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,
Alex87
Super User
Super User

try this: 

Measure =

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




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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