Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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:
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.
Solved! Go to Solution.
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
-----------
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
-----------
Can i add something to get an answer? Maybe i am not clear enough?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |