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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.