Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear all,
I am trying to filter a table based on the measure pasted below. A row from the table 'sheet1' should be shown in the table if:
This code gives me the following error 'The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.' and I don't know how to solve it. Could anyone help out?
Hi,
Can you try like this ?
Filter missing requirements =
VAR MTMB = "ABN-1095"
VAR Filtermissing =
FILTER('Sheet1',
CONTAINSSTRING('Sheet1'[Parent Link], MTMB) &&
(
'Sheet1'[CRA Intake Status] = "To Do" ||
'Sheet1'[Eligible for Capitalisation] = "No" ||
ISBLANK('Sheet1'[Eligible for Capitalisation]) ||
'Sheet1'[Solution Intent status] = "Undefined" ||
'Sheet1'[Solution Intent status] = "To Do"
)
)
RETURN
Filtermissing
Hope it helps
Igna
Hi Igna,
Thanks, unfortunately I still receive an error. I attached the source files to the comment of Ahmedx
but a measure cannot be a table, did you create a measure?
write like this and select 1
Filter missing requirements =
VAR MTMB = "ABN-1095"
VAR Filtermissing =
FILTER('Sheet1',
CONTAINSSTRING('Sheet1'[Parent Link], MTMB) &&
'Sheet1'[CRA Intake Status] = "To Do" ||
'Sheet1'[Eligible for Capitalisation] = "No" ||
ISBLANK('Sheet1'[Eligible for Capitalisation]) ||
'Sheet1'[Solution Intent status] = "Undefined" ||
'Sheet1'[Solution Intent status] = "To Do"
)
RETURN
if ( COUNTROWS(Filtermissing)>1,1,0)
Thank you
it was the right decision, if so then you will accept it as a decision?
Hi, I created a measure to use as a filter in the filter pane applying it to a table visual.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
and expected output!
In this dummy file I forgot to change the following in the above code:
The second line "ABN-1095" should be replaced with "Theme 1"
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |