Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
lcasey
Post Prodigy
Post Prodigy

How to Get totals on a filtered visual?

Hello,

 

I have a table called events.  I have filtered it so that only the last 7 days will be displayed.  However, I want to show all the events in the past 7 days just like the table, and then show the Total amount of Events for that specialist. The measure though, shows the total amount of events for all specialists.  How can I show the total # of events per specialist ignoring the filter on the visual?

 

THanks

1.png

 

 

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @lcasey ,

 

It may be that the filter criteria are not applied to the correct column. Try a formula similar to the following, where column refers to the filter condition that only keeps the selected column.

Measure = COUNTROWS(ALLEXCEPT('Table','Table'[Column1]))


If the basis is confused, can you provide a test data model (delete sensitive information) so that I can do further testing.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@lcasey You need to replace your ALL with ALLSELECTED or something similar.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I tried your suggestion but the total always remains the smae for all specialists.  It is providing the correct Total Number of events, but I want to see that total broken out by the specialist.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.