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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

TOTALQTD but starting one month later (Feb instead of Jan)

Hello,

I hope that you cna help me with this, should be an easy fix but i am stuck. I have the following formula to calculate a certain sum of points until the begining of every quarter:

Period since award = TOTALQTD([SUM of Points];vMASTERCalendarLast12Month[Date])
 
What I need is the same calculation but also that the Quarter starts one month later - instead of Jan in Feb, instead of Apr in May (visualisation below I have TOP P and I need also TOP I)..

123456789.PNG
Thanks a lot in advance.

Cheers.
 
 
 
4 REPLIES 4
parry2k
Super User
Super User

@Anonymous try this measure

 

Period since award Move 1 Month = 
CALCULATE(
[SUM of Points];
DATEADD(
DATESQTD(vMASTERCalendarLast12Month[Date]),
1,
MONTH
) 
)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks a lot for the quick answer @parry2k  , unfortunatelly it seems that the formula doesn´t add the points correctly and i have no filters set. I also tried to add the same date filter to my original formula but didin´t work.

32156+4987.PNG

@Anonymous I have tested it at my end and it works fine. do you have calender dimension in your model?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  Hi, first thank again for the fast response. I am not sure what exactly you mean but my Data structure for date is the following:

999999999.PNG

 

But then again i am not using any date formating or filter in the representation of the data:

 

8888888.PNG

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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