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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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