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
Saaharjit
Helper I
Helper I

cumulative sum of values for a week

I have the below table

11.JPG

I want to display bar graph that has the cumulative sum of Panels for a week. Then after the week it refreshes starts again for the next week. We are using Date completed column to figure out the week.

 

For eg.

week 1:

1st nov - 10 panels are produced 

2nd nov - 10 panels are produced (the bar graph would have 20 panels for 2nd nov)

3rd nov - 10 panels are produced (the bar graph would have 30 panels for 3rd nov)

...

 

Example for the graph

11.JPG

 

 

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

Hi @Saaharjit

 

Try adding this Calculated Column

 

Cumulative_Panels =
SUMX (
    FILTER (
        TableName,
        WEEKNUM ( TableName[Date_Completed] )
            = WEEKNUM ( EARLIER ( TableName[Date_Completed] ) )
            && TableName[Date_Completed] <= EARLIER ( TableName[Date_Completed] )
    ),
    TableName[Panels]
)

Regards
Zubair

Please try my custom visuals

View solution in original post

HI @Saaharjit

 

Use WEEKDAY(TableName[DateColumn],2).

 

It will start your week from Monday


Regards
Zubair

Please try my custom visuals

View solution in original post

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.