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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PowerBI_M
Regular Visitor

Create a PowerBI measure, to perform some filter tasks.

Hi,

 

I want to create a PowerBI measure, to perform some filter tasks.

Basically, I want to create a measure that returns 1 if ColumnA = empty OR column B is empty OR columns C = empty. I'm just getting started with measures and I am getting stuck.

My code attempt:

M_DataIssues = FILTER(
                      ALL(Table[ColA] ; Table[ColB] ; Table[ColC])
                          Table[ColA] = "" || Table[ColB]= "" || Table[ColC] = "")

Any help would be appreciated.

PS. due to my user permissions, I can only create measures. I do not have rights to do other modelling tasks or create columns e.g.

Thanks!!

KR ~M.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Well, if you want a measure, it would be something like:

 

M_Flag = 
  IF(
    'Table'[ColA]="" || 'Table'[ColB]="" || 'Table[ColC]="",
    TRUE,
    FALSE
  )


Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Well, if you want a measure, it would be something like:

 

M_Flag = 
  IF(
    'Table'[ColA]="" || 'Table'[ColB]="" || 'Table[ColC]="",
    TRUE,
    FALSE
  )


Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks, I accepted the solution. Is there a way to filter on this created measure? So only the True values? Again, I can only create measures, no columns etc.

 

ty

 

~M

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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