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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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