cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rayloubayi
Helper II
Helper II

Start and end of previous Quarter

hello

please someone knows how to calculate the start or end of previous quarter? 

1 ACCEPTED SOLUTION
Fowmy
Super User IV
Super User IV

@rayloubayi 

If you are creating a new column then

End of PQ = EOMONTH( ENDOFQUARTER( financials[Date] ) , -3 )
Start of PQ = EOMONTH( ENDOFQUARTER( financials[Date] ) , -6 )+1
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
rayloubayi
Helper II
Helper II

Thank you both for your answer you saved my day =D thank you 

Fowmy
Super User IV
Super User IV

@rayloubayi 

If you are creating a new column then

End of PQ = EOMONTH( ENDOFQUARTER( financials[Date] ) , -3 )
Start of PQ = EOMONTH( ENDOFQUARTER( financials[Date] ) , -6 )+1
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

nvprasad
Solution Specialist
Solution Specialist

Hi rayloubai,

You can get by using below dax

PrevQtrSTart = EOMONTH(STARTOFQUARTER('Date'[Date]),-4)+1
PrevQtrLast= EOMONTH(STARTOFQUARTER('Date'[Date]),-3)
 

Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂

Regards,
N V Durga Prasad

hello @nvprasad 
thank for your answer, but getting something weird, it displaying 2018 
do you know how i can modify the script to have the normal year like the current one? 🙂

rayloubayi_0-1626774296634.png

 

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors