Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Use a report filter directly in power-query-result-table

Power-Query-Result-Table

enter image description here

Pivot-Table on Power-Query-Result-Table

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here


I am getting the list in the first screenshot as a result from the Power-Query-Editor.
Now I want to apply a Report Filter to it. Therfore, I put the data into a Pivot-Table.

In general this solution is working but I am wondering if it is possible to have the Report Fitler directly in the Power-Query-Result-Table to avoid an additional Pivot-Table?

>Solution :

You can filter for crew directly in the PowerQuery using the drop down atop the crew column like below image. In this image I filter for Crew=J

enter image description here

That generates code as follows:

#"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Crew] = "J")

If you put J into a a cell on the excel sheet and gave that cell a range name like CrewName, you could reference that range name in the powerquery and filter dynamically

 #"Filtered Rows"= Table.SelectRows(#"Changed Type", each [Crew] = Excel.CurrentWorkbook(){[Name="CrewName"]}[Content]{0}[Column1])
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading