Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Solved! Go to Solution.
Well, if you want a measure, it would be something like:
M_Flag =
IF(
'Table'[ColA]="" || 'Table'[ColB]="" || 'Table[ColC]="",
TRUE,
FALSE
)
Well, if you want a measure, it would be something like:
M_Flag =
IF(
'Table'[ColA]="" || 'Table'[ColB]="" || 'Table[ColC]="",
TRUE,
FALSE
)
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |