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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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