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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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

 

 


 

    Microsoft MVP




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.





LinkedIn
Visit my LinkedIn page





Outlook Booking
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?


 

    Microsoft MVP




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.





LinkedIn
Visit my LinkedIn page





Outlook Booking
Schedule a short Teams meeting to discuss your question.




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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