Forum Discussion
Date Table Question
NJ81858 Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008
- NJ818583 years agoHelper IV
Greg_Deckler My Date Table looks something like this:
Date Start of Week End of Week Week Month Month Name 1/4/2023 12/31/2022 1/6/2023 12/31/2022 - 1/6/2023 1 January 1/5/2023 12/31/2022 1/6/2023 12/31/2022 - 1/6/2023 1 January 1/6/2023 12/31/2022 1/6/2023 12/31/2022 - 1/6/2023 1 January 1/7/2023 1/7/2023 1/13/2023 1/7/2023 - 1/13/2023 1 January 1/8/2023 1/7/2023 1/13/2023 1/7/2023 - 1/13/2023 1 January and my expected result will look something similar to this (note this will be the expected result that will distribute on 1/9/2023) :
Weekly Report (for 12/31/2022 - 1/6/2023) :
Group Metric 1 Metric 2 Group 1 1 3 Group 2 4 6 Group 3 7 8 Monthly Report (for December) :
Group Metric 1 Metric 2 Group 1 25 55 Group 2 30 60 Group 3 20 70 So as you can see, since the start date of the week and the end date of the weekly report are in different months, my monthly report will show the total amount for December, and then for the report that will distribute on 1/23/2022, the weekly report will be for 1/14/2023 - 1/20/2023, and the Monthly Report will be for 1/1/2023 - 1/20/2023, since the start of week and end of week dates are both in the same month, which will show from the beginning of January to most recent date.