Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
This is the field i used from data source for creating report.My requirement is i need a slicer which contains values like 30 days,60 days,90 days,120 days.When i select 30 days data will show based on policy_expiry_date which contains date expired within last 30 days compare with current date.Like wise 60 days means date expired within last 60 days compare with current date.Example,current date is (01-11-2020),so when i select 30days from slicer value will show from today to last 30 days.When i select 60 days from slicer data will show from today to last 60 days data.
Solved! Go to Solution.
@nisha_deepak - you can use relative date slicer to show the data for last 30,60,90 and so on days, months, years as you like.
@nisha_deepak
Create a Slicer Table as follows, you can add more rows as necessary and name it Period
Create the following Measure:
ExpiryFlag =
var _Period = SELECTEDVALUE(Period[Days])
var _ExpiryDate = SELECTEDVALUE('DataTable'[Date])
return
IF( _ExpiryDate >= (TODAY() - _Period) && _ExpiryDate < TODAY() , 1 , 0)
Assing to the Table visual where you want to see the Expiry dates filter by selected Period Range
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@nisha_deepak - you can use relative date slicer to show the data for last 30,60,90 and so on days, months, years as you like.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |