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

Cumulative sum based on date range slicer and group by

I have 2 employees and the sales values ordered by date in the table. I want to create a table where I filter by date and the cumulative sales per employee should be displayed for the corresponding date.

 

Employee sales tableEmployee sales table

max_selected = MAX(Query1[Date])

min_selected = MIN(Query1[Date])

Measure= 
CALCULATE(
    (SUMX(VALUES(Query1[ID]),CALCULATE(SUM(Query1[Sales])))),
    FILTER (ALL(Query1),
        [Date] >= [min_selected]
            && [Date] <= [max_selected]
    ))

Can someone please help me here?

12 REPLIES 12

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.