Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
Need to group dates into last 7 days of my calendar table in a column, I tryied with out luck and finally llooks I´m very close with this calculated column:
This dataset it´s refreshed 4 times a day, it´s need to be grouped it dynamically in every refresh on this pattern , sorry but i´m lost on this.
Thanks in advance
Solved! Go to Solution.
Hi, thanks but does not work either.
This solution evaluates today and puts and Y if it´s in the last 7 days.
I need to put there max of week start in 7 days rolling periods.
from today to today -6 --> todays date
from day 6 to 14 --> day 6 date
from day 15 to 21 --> day 15 date
etc...
Thanks in advance
You might also want to review Sequential: https://community.powerbi.com/t5/Quick-Measures-Gallery/Sequential/m-p/380231#M116
Thanks for both resources, I had a quick view and they are very interesting, but does not match to my requirementes, finally I found a solution,:
Not sure I got it, but you can get something like that
Rolling 7 = CALCULATE(Max(Sales[Sales Date]),DATESINPERIOD('Date'[Date Filer],MAX(Sales[Sales Date]),-7,Day))
Where sales is my transaction table
Sorry, nice idea but I tryied and does not work, I need a separate column in calendar table to use it in a chart to group data by this column.
I need it to create it whit out relation to a transaction table.
This week start day needs to change every 7 days. Example for this week it´s 13-4-2020 for the last 7 days, after 7 days should be the first day of the second group of 7 days, etc...
This has to change everyday, your solution places the max value of transaction in all column 😞
Thanks anyway for your time
It didn´t allow me to paste the screenshot.... here´s the table desired 😉
Date | WeekStart | First Day 7 Last Days | Desired Result |
13/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
12/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
11/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
10/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
09/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
08/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
07/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 13/04/2020 0:00 |
06/04/2020 0:00 | 06/04/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
05/04/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
04/04/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
03/04/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
02/04/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
01/04/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
31/03/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 06/04/2020 0:00 |
30/03/2020 0:00 | 30/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
29/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
28/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
27/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
26/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
25/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
24/03/2020 0:00 | 23/03/2020 0:00 | 13/04/2020 0:00 | 30/03/2020 0:00 |
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |