Hello
I'm trying to filter by the field named Clinic based on the value of a text parameter, named p_SelectedClinics, if its value isn't "All", but struggling with the syntax.
This gives me "Expression.SyntaxError: Token Comma expected." and wiggly line under 'then'
How should it be written?
My next line is a filter which does work, but ideally all the filtering would be one step
Guidance greatly appreciated!
I'm trying to filter by the field named Clinic based on the value of a text parameter, named p_SelectedClinics, if its value isn't "All", but struggling with the syntax.
This gives me "Expression.SyntaxError: Token Comma expected." and wiggly line under 'then'
Power Query:
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each If [p_SelectedClinics] <> "All" then [Clinic] = p_SelectedClinics),
How should it be written?
My next line is a filter which does work, but ideally all the filtering would be one step
Power Query:
#"Filter by dates" = Table.SelectRows(#"Filtered Rows", each [Date] >= p_ReportStartDate and [Date] <= p_ReportEndDate),
Guidance greatly appreciated!