March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am trying to calculate the WTD (week to date starting on Mondays) and MTD / YTD figures on a table where person can select the date to base this on.
It would seem it should be fairly easy as we want to sum the field for all records where the week number matches the week number of the selected date but I can't seem to get the filtering correct.
My base table TRC which has data in it is (first row is the column names):
Queue | Date | Answered |
IT Help | Mon 2 March 2020 | 47 |
IT Help | Tue 3 March 2020 | 45 |
Customer Service | Mon 2 March 2020 | 707 |
Customer Service | Tue 3 March 2020 | 578 |
This data has already been summarised for simplicity (in actual fact there may be a number of records for same queue/date.
There is also a date table which has each unique date which links/related to this table and is used for selection.
Both tables have extra columns with calculated YEAR(date) * 100 + WEEKNUM(date) so that I can restrict data. In above example it returns 202010.
What I need is when the user selects Mon 2nd then get:
IT Help with WTD of 47
Customer Service WTD = 770
If Tue 3rd selected then get:
IT Help WTD = 92
Customer Service WTD = 1285
The user can also select a specific queue so will only see data related to that.
I am having trouble keeping the selected date as well as filtering by same date field to get WTD (and presumably MTD/YTD figures).
Have tried
Solved! Go to Solution.
@george31 see attached, there are many tables, for you, just look at customer service and calendar table and measures in Customer Service table
Would appreciate Kudos 🙂 if my solution helped.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Correction: formulae should have been <= [Selected Date]
Have also tried
@george31 so you want Week To Date total by each queue and week starting Monday, correct?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks very much @parry2k .
Very simple solution.
Another thing I had to do is use the Calendar[Date] in my table/matrix rather than I had used the TRC[Date] which seem to show extra info but no matter.
Appreciate your quick precise help!!
@george31 see attached, there are many tables, for you, just look at customer service and calendar table and measures in Customer Service table
Would appreciate Kudos 🙂 if my solution helped.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |