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 August 31st. Request your voucher.

Reply
kac8866
New Member

Calculated measure not updating in pivot table with date filter

I have data that has sales for servers within different categories (Apps, Desserts, etc). The rows are summed by individual menu items. Below is a screen shot of part of the table

kac8866_0-1740620183254.png

 The date column is the last day of the fiscal week. There is a separate Date Table and the proper relationship is active between the two tables.I have a measure that calculates the sales of each server by category. But when I put that measure into a pivot table with Fiscal week as a filter, I only get the total for all three fiscals weeks no matter what week, or combination of weeks, I select in the fiscal week filter. Not sure how to have this measure change with the date filter. The measure is 

ServerCategorySales = CALCULATE(SUM(LEX_Data[Sales ($)]), ALLEXCEPT(LEX_Data,LEX_Data[Category],LEX_Data[Team Member]))

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

@kac8866 Functions like ALL, ALLEXCEPT, REMOVEFILTERS etc removes the Filters from the Expanded Tables, if LEX_Data is on the Many side then any table that is on the One side will also be impacted.

 

In ALLEXCEPT you need to include those Date columns that should be allowed to Filter the calculation, you can keep some columns or whole Dates table.

 

ServerCategorySales =
CALCULATE (
    SUM ( LEX_Data[Sales ($)] ),
    ALLEXCEPT (
        LEX_Data,
        LEX_Data[Category],
        LEX_Data[Team Member],
        Dates[Column],
        Dates
    )
)

 

View solution in original post

1 REPLY 1
AntrikshSharma
Super User
Super User

@kac8866 Functions like ALL, ALLEXCEPT, REMOVEFILTERS etc removes the Filters from the Expanded Tables, if LEX_Data is on the Many side then any table that is on the One side will also be impacted.

 

In ALLEXCEPT you need to include those Date columns that should be allowed to Filter the calculation, you can keep some columns or whole Dates table.

 

ServerCategorySales =
CALCULATE (
    SUM ( LEX_Data[Sales ($)] ),
    ALLEXCEPT (
        LEX_Data,
        LEX_Data[Category],
        LEX_Data[Team Member],
        Dates[Column],
        Dates
    )
)

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.