Forum Discussion
Include Filtered Items in Totals
Hi, it is possible in a pivot table in Excel to include filtered Items in totals so if you filter out a value the grand total will stay the same. Do you know if this is possible in Power bi or if it will be possible in the near future? Is there a simple dax code I could use if this is not possible?
Here is a link that shows how it's done in Excel: https://excelk.com/en/include-filtered-items-in-totals-en/
All the best,
Rolo
Anonymous , you can try all, removefilters
calculate(sum(Table[value]),all(Table))
refer this for removefilters
https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
4 Replies
- Fowmy
Super User
Anonymous
Create a measure this way:Total = IF( ISINSCOPE(Data1[City]), SUM('Data1'[Value]), CALCULATE( SUM('Data1'[Value]) , ALL(Data1[City])) )________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
- Greg_Deckler
Community Champion
Anonymous - Perhaps, you could possibly use ALL in your totals row. See if this helps:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907 - amitchandak
Super User
Anonymous , you can try all, removefilters
calculate(sum(Table[value]),all(Table))
refer this for removefilters
https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
- AnonymousNot applicable
Thank you I really appreciate your help, ALL worked in my case.