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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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