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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Columns instead of Measures for the sum of the last 5 months

Hey everybody. 

 

I have created a calculated measure summarizing the Total AR for the last 5 months. The formula is bellow:

 

TOTAL AR (last 5 mts) = CALCULATE(SUM(VIEW_AR_MONTH[Total AR]), DATESINPERIOD(VIEW_AR_MONTH[Derived Date],LASTDATE(VIEW_AR_MONTH[Derived Date]),-5,MONTH))
 
This works like a charm = i see the summarization of the last 5 months and if I include the derived date in the table, I see the calculation for every previous month.
 
NOW. I need to do this as a calculated Column and not measure (for filtering reasons later on). 
The formula provided no longer works and it gives me only the current month numbers with no summarization at all. I know the columns and measures are different, but I couldn't solve this issue. 
 
Does anybody have an idea how to achieve this?
 
Cheerio,
Kris
2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous  ,
 
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards
Amy

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

I can't figure out how to create column to meet your demand currently, while you can try to create measures like DAX below. 

 

Period End = LASTDATE(VIEW_AR_MONTH[Derived Date])

 

Period Start= FIRSTDATE( DATESINPERIOD(VIEW_AR_MONTH[Derived Date], [Period End], -5, MONTH))

 

Sum Rolling 5 month = CALCULATE(SUM(VIEW_AR_MONTH[Total AR]),DATESBETWEEN ( VIEW_AR_MONTH[Derived Date], [Period Start], [Period End] ))

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.