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
kasiak
Frequent Visitor

SWITCH help with blank()

Hi,

I wanted to create new column with formula below:

 

column_3 =
SWITCH(
TRUE (),
'file'[office] = BLANK() &&
'file'[Current Task] = "Record Completed" &&
'file'[Service Status] = "No issues" &&
'file'[No Filing Requirement] = "No",
"1",
"0")
 
However, while filtering new column_3 & see that there's one row in [office] column that contains data, while it should be blank. What am I doing wrong? 
 
Thank you for your support.
Kasia
1 ACCEPTED SOLUTION

Thank you @Greg_Deckler I think I solved it 🙂

Thanks!

BR,

Kasia

View solution in original post

3 REPLIES 3
kasiak
Frequent Visitor

Thank you Greg @Greg_Deckler for your reply. I'm not sure if I understand correct 🙂

So, is the first condition wrong? My aim is to show only blank rows within office column, but only if other conditions are met too:

'file'[Current Task] = "Record Completed" &&
'file'[Service Status] = "No issues" &&
'file'[No Filing Requirement] = "No"
 
Could you please clarify? I'm a beginner in dax:) thank you!

 

 

Greg_Deckler
Super User
Super User

@kasiak The way your formula is written, it will either return 1 or 0, never blank.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you @Greg_Deckler I think I solved it 🙂

Thanks!

BR,

Kasia

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.