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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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