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

Issue with setting Date filter for: Most recent two months in a column

Hi all,

 

I'm trying to let powerbi run some things for me but running into the following issue.

 

I want to see data for all dates in one column, excluding the first and second months in that column.

 

Example:

 

My column contains:

August 2018

October 2018

November 2018

December 2018

January 2019

February 2019

March 2019 

and probably some more.

 

Now I want to continue, using all data from November onwards... How can I exclude August / October going forward in my measure, in such a way that I can use it on different data sets too, and it would exclude the first two months of any data set. 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous ,

 

In Query Editor mode, sort the [Date] with ascending order, then, add an index column in Query Editor mode. Filter the index column to make it to be greater than 2.

1.PNG2.PNG

3.PNG

 

Remove the index column.

4.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft
Employee
Employee

Hi @Anonymous ,

 

In Query Editor mode, sort the [Date] with ascending order, then, add an index column in Query Editor mode. Filter the index column to make it to be greater than 2.

1.PNG2.PNG

3.PNG

 

Remove the index column.

4.PNG

 

Best regards,

Yuliana Gu

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

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.