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

QTD as of previous month and for current QTD first month then it should show previous quarter sales

Hello,

I want to display QTD as of previous month means In September, the value should be only for Jul and Aug, and for first month of every quarter I want to display previous quarter sales means In October(Q4) the previous quarter(Q3) sales should be display but again if month changes to November then sales of October should be display as it is in Q4, Can anyone give me the formula. I have tried in other ways but still not working. Please help me out in this case.

 

Thanks

1 REPLY 1
amitchandak
Super User
Super User

 

QTD Units Actual = CALCULATE([Total Units Actual],DATESQTD(CalendarTable[Date])) 

Refer
https://community.powerbi.com/t5/Desktop/YTD-QTD/td-p/320605

Last date of previous month
https://community.powerbi.com/t5/Desktop/Last-date-Previous-Month/td-p/304786

CALCULATE (
SUM ( Table1[Amount] ),
LASTDATE ( PREVIOUSMONTH ( Kalender[Date] ) )
)

Merge

QTD Units Last Month = CALCULATE([Total Units Actual],DATESQTD(LASTDATE ( PREVIOUSMONTH (CalendarTable[Date]))))

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.