Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
admin11
Memorable Member
Memorable Member

How to make my expression display Oct till Dec 2021 sales amount ?

Hi All

I have below expression working fine , it return Sep till Nov 2021 sales :-
 
QTD Sales Previous = CALCULATE(SUM(Sales[sales]),DATESQTD(dateadd('DATE'[Date],-2,QUARTER)))
 
May i know how to change the above expression , so that it will return Oct till Dec 2021 sales ?
 
Paul
 
4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @admin11 ,

The DATESQTD function calculates based on the real quarter, for example, the fourth quarter is from October to December, not quite sure how you would return September to November sales, could you please explain more or provide a sample? It will helpful to solve your problem faster.

Best Regards,
Community Support Team _ kalyj

themistoklis
Community Champion
Community Champion

Hello @admin11 ,

 

Try any of the formulas below:

 

CALCULATE(SUM(Sales[sales]), DATESBETWEEN('DATE'[Date],DATE(2021,10,01), Date(2021,12,31)))

CALCULATE(SUM(Sales[sales]), FILTER(Sales,  Sales[Date] >= DATE(2021,10,01) && Sales[Date] <= Date(2020,12,31)))

@themistoklis I don't want hard code . As when 3 month later , this expression will auto compute Jan till March sales amount 

Hello @admin11 

 

Please use the following formula

CALCULATE(SUM(Sales[sales]), PREVIOUSQUARTER(Sales[Date]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.