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.
Hi All,
I have a dataset similar to the below.
I want to create a slicer which when individual buttons are selected will show ID's that have been on hire for 1 month, 2 months, 3months etc.
ID | On Hire Date | Off Hire Date |
1 | 01/01/2019 | 01/02/2019 |
2 | 01/01/2019 | 01/03/2019 |
3 | 01/01/2019 | 01/04/2019 |
4 | 01/01/2019 | 01/05/2019 |
Can anyone please help?
Hi @Serdet ,
Create a table as below and use the month column as silcer.
Then create a measure as below and add it to visual filter.
Measure = IF(DATEDIFF(SELECTEDVALUE('Table'[On Hire Date]),SELECTEDVALUE('Table'[Off Hire Date]),MONTH)<=SELECTEDVALUE('month'[value]),1,0)
Result would be shown as below.
Best Regards,
Jay
Hi Jay,
Thanks for your comment. I have followed the advised steps and have the below outcome.
Please can you advise?
Hi @Serdet ,
I don't get the point, could you explain the details?
Best Regards,
Jay
@Serdet
Can you provide more information and explain further?
What do you need to select/filter? is it Period as months?, How does Off Dates come in to play?
Show an expected output as well to better understand your requirement.
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi,
I am looking at scaffold data and have an On Hire and Off Hire date. From this, I want to create a slicer which will show certain clickable boxes (i.e 1 month, 2 months, 3 months) and when these boxes are selected it will show me all scaffolds that have been on hire longer than the selected time frame.
Sorry for the jaba jaba.
@Serdet , refer if this can help
or a slicer like this
and formula like
Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-3,MONTH))
Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-3,MONTH))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |