Because in the Standard Pivot Table it is not possible to use a filter of greater, less, greater or equal etc. then Power Query solves this problem
Source Filter Result Name Subject Score Filter Subject Count of Score Jack Maths 84 75Chem 2Fred Chem 73English 3Pete English 89French 3Harry French 88Maths 2Mary Maths 60Grand Total 10Sally Chem 62Don English 79Ken French 91Eddie Maths 70Sara Chem 92Joel English 75Tom French 88Jake Maths 94Noel Chem 95
Code:let def = Excel.CurrentWorkbook(){[Name="Table5"]}[Content][Filter]{0}, Source = Excel.CurrentWorkbook(){[Name="Table13"]}[Content], Filter = Table.SelectRows(Source, if def = null then each [Score] >= 0 else each [Score] >= def) in Filter
Filter Result Filter Subject Count of Score 90Chem 2French 1Maths 1Grand Total 4
Filter Result Filter Subject Count of Score 80Chem 2English 1French 3Maths 2Grand Total 8
Filter Result Filter Subject Count of Score Chem 4English 3French 3Maths 4Grand Total 14




Bookmarks