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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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