Forum Discussion
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
Hi Anonymous ,
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.
Result:
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- v-xicaiCommunity Support
Hi Anonymous ,
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.
Result:
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-xicaiCommunity Support
Hi Anonymous ,
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
- AnonymousNot applicableCould you please share working file
- v-xicaiCommunity Support
Hi Anonymous ,
You can download my test pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/Ee7QmVopNCJHgsKhG7ildzQBbQhWxIsd0ox6iwIeC1JMxw?e=dbkcDH
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.