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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Anonymous
Not applicable

Filter 12 month of data

Hi Team,

I need to show the data greater then current month and less then - 12 month.

Monthdata
2019-0315
2019-0410
2019-0512
2019-0623
2019-0712
2019-0821
2019-0954
2019-1062
2019-1126
2019-1254
2020-014
2020-0254
2020-0353
  
  
  
output 
2019-0410
2019-0512
2019-0623
2019-0712
2019-0821
2019-0954
2019-1062
2019-1126
2019-1254
2020-014
2020-0254
  
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks ashish for your input. i got the solution by the below DAx code.

work = var y=CALCULATE(SUM(Append1[data]),FILTER(Append1,Append1[Month]<Value(max(Append1[Month]))&& Append1[Month]>TODAY()))

Return y

 

Thanks,

Rajveer.

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question here - Flex a Pivot Table to show data for x months ended a certain user defined month.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

I am not able to open the excel which you have provided. Can you please let me know how we can implement ths using DAX expression.

 

Thank,

Rajveer

Hi,

What problem are you facing in opening the file?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thanks ashish for your input. i got the solution by the below DAx code.

work = var y=CALCULATE(SUM(Append1[data]),FILTER(Append1,Append1[Month]<Value(max(Append1[Month]))&& Append1[Month]>TODAY()))

Return y

 

Thanks,

Rajveer.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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