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
Amardeep100115
Post Prodigy
Post Prodigy

Filter by last month

Hi,

 

I wish to display upcoming expiry date with taxi root & Taxi no data in data table in visual  after selected month. I have last 8 minths same data with me.

 

if i selected May 2019 in filter visual then table should be reflect all "Current Expiration Date" data after May 1, 2019 and accordingly table as well.

 

 

 

 

 

Sample data is available on below link

https://1drv.ms/u/s!Ai3rGPgy20kLwRosZpa8BCeEw5d3?e=je1U8v 

AB
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Amardeep100115 ,

 

You can create column Year & Month , and let it as source of slicer visual.

 

Year & Month = FORMAT(Sheet1[Current Expiration Date],"MMM yyyy")

 

To get this sorted correctly , also add the following column.

 

MonthID = IF(Sheet1[Current Expiration Date]<>BLANK(),INT(format(Sheet1[Current Expiration Date],"YYYYMM")),BLANK())

 

Once you have created the two columns, you can choose the column Year & Month in Field pane, then sort by column MonthID like picture below.

 

1.png

 

 

 

 

 

 

 

Result:

 

2.png

 

 

 

 

 

Best Regards,

Amy

 

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

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi  @Amardeep100115 ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Could you please share working file
AB

Hi @Amardeep100115 ,

 

You can download my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/Ee7QmVopNCJHgsKhG7...

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Amy.

 

Reuslt should be the filter data as list after selected month/upcoming expiry taxi root. 

AB
v-xicai
Community Support
Community Support

Hi @Amardeep100115 ,

 

You can create column Year & Month , and let it as source of slicer visual.

 

Year & Month = FORMAT(Sheet1[Current Expiration Date],"MMM yyyy")

 

To get this sorted correctly , also add the following column.

 

MonthID = IF(Sheet1[Current Expiration Date]<>BLANK(),INT(format(Sheet1[Current Expiration Date],"YYYYMM")),BLANK())

 

Once you have created the two columns, you can choose the column Year & Month in Field pane, then sort by column MonthID like picture below.

 

1.png

 

 

 

 

 

 

 

Result:

 

2.png

 

 

 

 

 

Best Regards,

Amy

 

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.