SOLVED

Using Pivot table with filtering by conditions

%3CLINGO-SUB%20id%3D%22lingo-sub-2498762%22%20slang%3D%22en-US%22%3EUsing%20Pivot%20table%20with%20filtering%20by%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2498762%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20use%20pivot%20table%20to%20calculate%20orders%2C%20prices%20and%20total%20for%20each%20state%20like%20the%20picture%20below.%20I%20want%20to%20add%20a%20condition%20for%20%3CSTRONG%3EOrders%3C%2FSTRONG%3E%20such%20as%20less%20than%2094.%20This%20means%20all%20data%20would%20be%20changed%20in%20the%20pivot%20table%20with%20a%20condition%20for%20%3CSTRONG%3ESum%20of%20Orders%3C%2FSTRONG%3E%20column.%20How%20can%20I%20do%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22filter%20by%20conditions.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292395i3C0AAF60311D05C8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22filter%20by%20conditions.jpg%22%20alt%3D%22filter%20by%20conditions.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2498762%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2498979%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Pivot%20table%20with%20filtering%20by%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2498979%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1091311%22%20target%3D%22_blank%22%3E%40Rosy_888%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20would%20like%20to%20filter%20source%20data.%20PivotTable%20ignores%20filtering%20of%20the%20source%20and%20works%20on%20entire%20data.%20Workarounds%20could%20be%3C%2FP%3E%0A%3CP%3E-%20create%20new%20filtered%20table%20and%20build%20PivotTable%20on%20it%2C%20sample%20is%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcontexturesblog.com%2Farchives%2F2020%2F03%2F05%2Fpivot-table-from-filtered-list-visible-rows%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPivot%20Table%20from%20Filtered%20List%20Visible%20Rows%20%E2%80%93%20Contextures%20Blog%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E-%20load%20parameter%20to%20data%20model%2C%20e.g.%20with%20Power%20Query%2C%20create%20DAX%20measure%20which%20uses%20this%20parameter%20to%20sum%20data%20and%20build%20PivotTable%20on%20data%20model%20using%20such%20measure%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2584931%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Pivot%20table%20with%20filtering%20by%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2584931%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

I use pivot table to calculate orders, prices and total for each state like the picture below. I want to add a condition for Orders such as less than 94. This means all data would be changed in the pivot table with a condition for Sum of Orders column. How can I do? 

Thank you,

 

filter by conditions.jpg

2 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@Rosy_888 

You would like to filter source data. PivotTable ignores filtering of the source and works on entire data. Workarounds could be

- create new filtered table and build PivotTable on it, sample is here Pivot Table from Filtered List Visible Rows – Contextures Blog

- load parameter to data model, e.g. with Power Query, create DAX measure which uses this parameter to sum data and build PivotTable on data model using such measure