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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filter context change - date slicer, measure

Hello Everyone,

I have two tables [DimDate] and [DataTable]. Both are connected in 1 to many relationship based on date. Next i am building simple slicer and table:

UksiDuksi_2-1707490542888.png

Slicer uses columns from [DimDate] table.
In table visible under slicer only 'Date' column comes from [DimDate], other columns come from [DataTable].

Column 'TotalEvents' is calculated based on following measure:

Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)

Why filter context is not passed to measure? In column TotalEvents i should get the same values as in 'Events' column but instead i am getting values for total events. Of course i should exclude DataTable[Equipment], DataTable[Type] etc. from the measure in order to get the same values between Events and TotalEvents but the issue is only with Date column - only those are not passed.

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

hi @UksiDuksiPryw , @Anonymous 

 

I am using Adventureworks to simulate your scenario. Please change table/column name accordingly.

 

Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)

 

You have written ALLEXCEPT(DateTable, DateTable[Date]), it means remove all filter except Date from DataTable.

1. You should use Date from DimDate.

2, Remove all filters coming from table visual which are from DataTable (Equipmet, type, Subtype). Do not write ALL(Table name). Mention ALL(Column names individually).

 

Measure

-----------

MTotalSales =
CALCULATE([MSalesAmount], ALL(DimProductCategory[EnglishProductCategoryName]))
 
talespin_0-1707665426417.png

 

View solution in original post

2 REPLIES 2
UksiDuksiPryw
New Member

Can i add something to get an answer? Maybe i am not clear enough?

talespin
Solution Sage
Solution Sage

hi @UksiDuksiPryw , @Anonymous 

 

I am using Adventureworks to simulate your scenario. Please change table/column name accordingly.

 

Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)

 

You have written ALLEXCEPT(DateTable, DateTable[Date]), it means remove all filter except Date from DataTable.

1. You should use Date from DimDate.

2, Remove all filters coming from table visual which are from DataTable (Equipmet, type, Subtype). Do not write ALL(Table name). Mention ALL(Column names individually).

 

Measure

-----------

MTotalSales =
CALCULATE([MSalesAmount], ALL(DimProductCategory[EnglishProductCategoryName]))
 
talespin_0-1707665426417.png

 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)