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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
dshao
Helper I
Helper I

Filter All Loses Slicer Capability

I am displaying a table below on my report:

 

dshao_0-1677020480266.png

The rows are measures calculated from Table T1. The measure used to calculate the bottom row is:

 

CALCULATE(sum(T1[Count]), FILTER(
                    ALL(T1),T1[dateend] >= SELECTEDVALUE('Date'[WeekEndDate]) - 6
                                        && T1[dateend] <= SELECTEDVALUE('Date'[WeekEndDate]))
                )
 
The purpose of this measure is to only count when dateend from T1 falls within the selected week in the table above.
 
The problem I am having is that I want to filter by userid in T1. When I selected a value from a slicer which the field is userid, the table above does not change. 
 
What I can do so that my slicer with userid will work with the table above?
1 ACCEPTED SOLUTION
dshao
Helper I
Helper I

The answer is to use ALLEXCEPT in place of ALL. Here was the final query that I used.

 

CALCULATE(sum(T1[Count]), FILTER(
                    ALLEXCEPT(T1,T1[userid],T1[username]),T1[dateend] >= SELECTEDVALUE('Date'[WeekEndDate]) - 6
                                 && T1[dateend] <= SELECTEDVALUE('Date'[WeekEndDate]))
                )
 

View solution in original post

5 REPLIES 5
dshao
Helper I
Helper I

The answer is to use ALLEXCEPT in place of ALL. Here was the final query that I used.

 

CALCULATE(sum(T1[Count]), FILTER(
                    ALLEXCEPT(T1,T1[userid],T1[username]),T1[dateend] >= SELECTEDVALUE('Date'[WeekEndDate]) - 6
                                 && T1[dateend] <= SELECTEDVALUE('Date'[WeekEndDate]))
                )
 
FreemanZ
Super User
Super User

hi @dshao 

try like:

CALCULATE(sum(T1[Count]), FILTER(
                    ALL(T1[date]),T1[dateend] >= SELECTEDVALUE('Date'[WeekEndDate]) - 6
                                        && T1[dateend] <= SELECTEDVALUE('Date'[WeekEndDate]))
                )

This produced blanks in the table for the bottom row.

olgad
Super User
Super User

Try Allselected instead of All


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

This produced blanks in the table for the bottom row.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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