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
ziyabikram96
Helper V
Helper V

Running Addition Column

Hi,

I am trying to calculate a column where it adds the working days in a running form. On 15th March, total working days would be 2, and 3 on 16th March. I require a column, not a measure. I have tried various methods but they return total working days till the maximum date in the table, not till a date in the row.

How can it be solved?

Thanks alot

ziyabikram96_0-1615560753567.png

 

1 ACCEPTED SOLUTION
ErikHamoen
Resolver I
Resolver I

Please check this article:

https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115 

 

Cumulative working days = 
CALCULATE (
    SUM ( 'Table'[Is WorkingDay] ),
    ALL ( 'Table' ),
    'Table'[Date] <= EARLIER ( 'Table'[Date] )
)

 

ErikHamoen_0-1615561430463.png

 

View solution in original post

1 REPLY 1
ErikHamoen
Resolver I
Resolver I

Please check this article:

https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115 

 

Cumulative working days = 
CALCULATE (
    SUM ( 'Table'[Is WorkingDay] ),
    ALL ( 'Table' ),
    'Table'[Date] <= EARLIER ( 'Table'[Date] )
)

 

ErikHamoen_0-1615561430463.png

 

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.