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

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

Reply
PakAli
Frequent Visitor

DAX: Calculate sum of previous quarter

Hi, 
I had search and found several queries on similar topic, 
However, when I tried, I do not achieve what I want
Instead, it is calculating "SUM amount up to the date"
Seeking advice what I did wrong

LeakCalculateQ.png

1 ACCEPTED SOLUTION
PakAli
Frequent Visitor

Ohhhh... After observing the result (image), now I do understand

stupid me, hahahaha


TQTQTQ for your guidance.. 

 

7ecb13fc-4c77-4fe2-9568-b5717ddae1c5.png

View solution in original post

4 REPLIES 4
PakAli
Frequent Visitor

Ohhhh... After observing the result (image), now I do understand

stupid me, hahahaha


TQTQTQ for your guidance.. 

 

7ecb13fc-4c77-4fe2-9568-b5717ddae1c5.png

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try having a calendar_dimension table like below.

I tried to create a sample pbix file like below, and please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1721011267386.png

 

Jihwan_Kim_1-1721011302522.png

 

 

Jihwan_Kim_2-1721011419437.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Interesting..

However, I have a question, 
why it is not working when using the 'date' column in the same table


LeakCalculateQ2.png

Hi,

can you please share how your visualization is built?


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.