Forum Discussion
Create a weekly count Measure
Hi,
I am having a table with 2 columns like below.
- Status: To measure the progress of the event
- Status change date: The latest status change date
Question - I would like to create a "Measure" to count the # of status change on weekly basis (Week start = Sunday).
For instance, In the week between 12th-18th May, the count should show with 5.
How to do that? Thanks a lot.
| Status | Status Change Date |
| In Progress | Wednesday, 1 May 2024 |
| In Progress | Monday, 13 May 2024 |
| In Progress | Tuesday, 14 May 2024 |
| Done | Thursday, 1 February 2024 |
| Done | Friday, 1 March 2024 |
| Done | Wednesday, 15 May 2024 |
| Hold | Wednesday, 15 May 2024 |
| Open | Wednesday, 15 May 2024 |
| Open | Thursday, 1 February 2024 |
3 Replies
- lbendlinSuper User
Week start = Sunday or MondayPlease make a choice.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- NekkiFrequent Visitor
Thanks for your comment. I am new to the forum, sorry.
modified the content already.
- lbendlinSuper User
Thank you for the sample data. It is not sorted by date so there is ambiguity.
For example the number of changes in that last week is 3, not 5.
Please sort your data in order of occurrence of the changes or status updates.