Forum Discussion
row filter with multiple clauses
- Anonymous9 years ago
Hi kelbow,
I agree with ankitpatira’s point of view, it seems more suitable than use query edit.
Based on test, I can’t reproduce your issue, it works well, can you provide more info about this operation? Before you add filters, please check if there are records meet [OwnerLogin] = "officedev" or [OwnerLogin] = "onenotedev" or [OwnerLogin] = "onedrive".
Test sample
Power query formula:
let Source = OData.Feed("services.odata.org/V4/Northwind/Northwind.svc"), Employees_table = Source{[Name="Employees",Signature="table"]}[Data], #"Filtered Rows" = Table.SelectRows(Employees_table, each [City] = "London" or [City] = "Redmond" or [City] = "Tacoma" or [City] = "Seattle" or [Region] = "WA") in #"Filtered Rows"Regards,
Xiaoxin Sheng
OK. So the other problem I have with your suggested solution is that I have a complex filter...
I want rows where
ownerlogin = X
OR
ownerlogin = Y
OR
ownerlogin = Z
OR
repoName = ZZ
I can't determine how to do that as part of a report or page level filter. When I try to use the report or page-level filter, using the Advanced tab, I can only choose two criteria and I need to choose four criteria. Also, I can do the first filters but not the last one because it's a different dimension...
Hi kelbow,
>>I can't determine how to do that as part of a report or page level filter. When I try to use the report or page-level filter, using the Advanced tab, I can only choose two criteria and I need to choose four criteria.
Based on test, the ‘Advanced mode’ only support two option, you can use the ‘base mode’ to select the specify records. But the page-level filter or report-level filter use ‘and mode’ to link, for example (filter1) and (filter2) not the ‘or mode’.
Since page-level filter or report-level filter not suitable for your requirement, you could use dax filter function or power query selectrows function to achieve your requirement.
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
So feedback - the advanced mode should support more than two options. For me, and the number of values in my list, filtering through the base mode takes me more than 15 minutes to select my values since the only option is scrolling and not typing.
Is there a link to a topic or demo that shows how to use the dax filter function or power query select rows function?
- Anonymous9 years agoNot applicable
Hi Anonymous,
>>Is there a link to a topic or demo that shows how to use the dax filter function or power query select rows function?
You can take a look at below links:
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
Thanks. So...while I appreciate the pointer to those things, I guess that's not really my question. Where would I do that in PowerBI? The first topic gives me the syntax for filtering - which is nice...but literally - where would I do that in the PowerBI UI? The second topic, again, talks through how to do that with Power Query but, where do I find Power Query in PowerBI? Where would I do this in the UI on PBI desktop? Do I do this in the query editor? If so, is this a step I'm adding? I believe that's what I'm doing and I'm encountering this bug.