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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Showing data from <Current Month - 2>

I'm trying to show the data in a table from 2 months ago using this Measure:

 

-2 Month Inbound Calls = calculate(SUM('Queue Perf - Total'[Calls]),filter('Queue Perf - Total',month('Queue Perf - Total'[Date])-month(today())=-2))

Took me a bit to realise why it wasn't working, but essentially it's calculating 2(Feb) - 12(Dec) and not calculating <Take 2 months off today's date and show me that data>.


Is there a way to produce that result using DAX?

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, you could refer to below formula:

Sample data:

1.PNG

Create below measure:

Measure = CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Date]<=TODAY()-60))

Result:

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, you could refer to below formula:

Sample data:

1.PNG

Create below measure:

Measure = CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Date]<=TODAY()-60))

Result:

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors