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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors