Forum Discussion
Creating a running total using a measure and multiple date columns
- Anonymous4 years ago
Hi cmarrazzo ,
Create a new calculated column to group the [Date Closed] field.
Week 2# = WEEKNUM('Tickets'[Date Closed],2)Create a new measure that will be used later to determine what week it is in the current context.
Week = MAX('Table'[Week #])Calculate the number of tickets closed for the week.
Current Week Ticket Closures = CALCULATE( COUNTA('Tickets'[Date Closed]), FILTER('Tickets','Tickets'[Week 2#]=[Week]), ALLSELECTED('Date Helper Table'[Day]) )The PBIX file is attached for reference.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Anonymous The only issue with this method is it associates week # with date entered only for each row. So it counts number of tickets closed but doesn't count those in the appropriate week.
Hi cmarrazzo ,
Create a new calculated column to group the [Date Closed] field.
Week 2# = WEEKNUM('Tickets'[Date Closed],2)
Create a new measure that will be used later to determine what week it is in the current context.
Week = MAX('Table'[Week #])
Calculate the number of tickets closed for the week.
Current Week Ticket Closures =
CALCULATE(
COUNTA('Tickets'[Date Closed]),
FILTER('Tickets','Tickets'[Week 2#]=[Week]),
ALLSELECTED('Date Helper Table'[Day])
)
The PBIX file is attached for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data