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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors