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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
navin1491
Frequent Visitor

Create a sum slicer that should change with changes in date slicer

I have a transactional data base that contains ID, Date, Sales. I have aggregated sales value at the ID level and can filter by using Date

 

Snapshot of dataSnapshot of data

Using the following data, I've created a cumulative sales value at the ID level, that changes with the date filter

sumsales = CALCULATE (
    sum ( 'Sheet1'[Sales] ),
    FILTER (
        'Sheet1',
        'Sheet1'[Date] >= MIN ( 'Sheet1'[Date] )
            && 'Sheet1'[Date] <= MAX ( 'Sheet1'[Date] )
    ))

I now want to use to above sumsales as a filter, so that when date filter is changed, the corresponding values in the sumsales filter should also change. For example, if I choose the date range slicer to be between 09/01/2018 - 12/01/2018, the sumsales filter should only contain values for that time period. Can someone please help me here. 

 

Attaching the link of the sample powerBI. 

 

https://drive.google.com/open?id=11of5z6dcD5Fa6Z-Ynfz2O9WbGC0erMQ4

 

Thank you in advance.

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @navin1491,

 

The measure will be changed by the date slicer by default . However, as I know, we cannot filter the table by a measure. 

 


 

 

 

I now want to use to above sumsales as a filter, so that when date filter is changed, the corresponding values in the sumsales filter should also change. For example, if I choose the date range slicer to be between 09/01/2018 - 12/01/2018, the sumsales filter should only contain values for that time period. 

 

 


 

If you choose the date range slicer, then the table will be filterd at the same time. Then the measure will be changed accrodingly. Please figure it out if I did not understand.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors