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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

cumulative function over the last 12 months given a specific date

Hello,

 

I need to create a DAX measure to compute the total volume over the past 12 months from a specific date, cumulatively. This date is different for each user, and is represented in the LastProofOfFunds column.

Andreea11_0-1639142435904.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Do you have the date column and the corresponded volume value in the table? If so you could refer the following measure.

 

Total Volume = CALCULATE(SUM('Table'[Volume]),FILTER(ALLSELECTED('Table'),'Table'[date]<=SELECTEDVALUE('Table'[LastProofOfFunds ])&&'Table'[date]>=EDATE(SELECTEDVALUE('Table'[LastProofOfFunds ]),-12)))

 

1.PNG

2.PNG

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Do you have the date column and the corresponded volume value in the table? If so you could refer the following measure.

 

Total Volume = CALCULATE(SUM('Table'[Volume]),FILTER(ALLSELECTED('Table'),'Table'[date]<=SELECTEDVALUE('Table'[LastProofOfFunds ])&&'Table'[date]>=EDATE(SELECTEDVALUE('Table'[LastProofOfFunds ]),-12)))

 

1.PNG

2.PNG

 

Best Regards,

Jay

ValtteriN
Super User
Super User

Hi,

Here is an example.

Start data:

ValtteriN_0-1639146595017.png

Dax:

RT12 = CALCULATE (
sum(RT12[Value]),
all(RT12[Date]),
DATESBETWEEN (
'RT12'[Date],
DATEADD (
LASTDATE ( DATEADD ( 'RT12'[Date], -12, MONTH ) ),
+1,
DAY
),
LASTDATE ( 'RT12'[Date] )
)
)
End result:

ValtteriN_1-1639146635622.png

 

Hopefully this helps and if it does, consider accepting this as a solution!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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