john-bodley opened a new pull request #17416:
URL: https://github.com/apache/superset/pull/17416


   ### SUMMARY
   
   It's somewhat typical to report for the current quarter (QTD) and currently 
the only way to do this is to define a broad time range and then add a custom 
SQL filter based on the current timestamp.
   
   This request has been mentioned in a couple of Stack Overflow questions:
   
   - [How to MTD, YTD in Apache 
Superset?](https://stackoverflow.com/questions/49862866/how-to-mtd-ytd-in-apache-superset)
   - [how to set current quarter in 
Superset?](https://stackoverflow.com/questions/69043541/how-to-set-current-quarter-in-superset)
   
   MTD, YTD, etc. are supported via the sweet date parse logic—kudos to whoever 
added this functionality—using the `datetrunc` functionality, thus I thought I 
should extend this to also include the `quarter` unit.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   <img width="445" alt="Screen Shot 2021-11-11 at 8 19 15 PM" 
src="https://user-images.githubusercontent.com/4567245/141408829-b9b18d9a-cbc3-456b-85cb-dcab63af2d0a.png";>
   
   ### TESTING INSTRUCTIONS
   
   Added unit test.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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