AdrianMastronardi opened a new issue, #31927:
URL: https://github.com/apache/superset/issues/31927

   ### Bug description
   
   Hi,
   While migrating a weekly dashboard from Excel to Superset, I found that time 
grain "Week starting Monday" doesn't select the proper data set.
   
   As far as I understand, when selecting "Week starting Monday" should 
consider a week from Monday to Sunday, and using Monday as the label for that 
data aggregation. While time grain "Week ending Sunday" should consider the 
same time frame but will label the data aggregation uising the Sunday date. 
Despite the label, both should take the same days for each week.
   
   When I select "Week ending Sunday" I obtain the correct sum for the week, 
however, when using "Week starting Monday" it takes data from Tuesday to Monday 
rather than from Monday to Sunday.
   
   I'm attaching the dataset I'm using and two screenshots for the two charts.
   
   I'm using superset 4.1.1
   
   Warm regards.
   
   ### Screenshots/recordings
   
   
![Image](https://github.com/user-attachments/assets/a3ff436e-828a-41dc-8619-807e70f213fe)
   
   
![Image](https://github.com/user-attachments/assets/671e0fbe-721b-4917-b609-cc9ce434a43c)
   
   
![Image](https://github.com/user-attachments/assets/e6e80492-3d62-4075-b0ef-668c87efd56b)
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to