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

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
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.