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

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
Super User

@Anonymous 

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
Anonymous
Not applicable

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

Fowmy
Super User
Super User

@Anonymous 

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

nvprasad
Solution Sage
Solution Sage

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

Anonymous
Not applicable

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
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.

Top Solution Authors