Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have two slicer 1. dropdown that contains minute/hour/day value as below table
ID | Desc |
1 | minute |
2 | hour |
3 | day |
2 slicer has date range from 6/10/2020 to 10/30/2020
My requirement, Can I change the selection of dropdown when I change date range as below scenario
If the date range is 7 days the dropdown selection should be change dynamically to an hour, if the date range is 1 day the dropdown selection should be change dynamically to minutes, and so on. Can I do this?
Solved! Go to Solution.
Hello @anand_kumar ,
We can create two measures to meet your needs.
Measure =
var _mindate = MIN('date table'[Date])
var _maxdate = MAX('date table'[Date])
var _difference = _maxdate - _mindate
return
IF(
_difference=1,1,
IF(
_difference=7,2,3))
Measure 2 =
IF(
SUM('Table'[ID])=[Measure],1,0)
Next, we click the slicer, place Measure2 under Filter in this visual, and set the value to 1.
If you don't meet your requirements, could you show the exact expected result based on the table you shared?
Best regards
Community support team _ zhenbw
If this post helps,then consider Accepting it as the solution to help other members find it faster.
BTW, pbix as an attachment.
Hello @anand_kumar ,
We can create two measures to meet your needs.
Measure =
var _mindate = MIN('date table'[Date])
var _maxdate = MAX('date table'[Date])
var _difference = _maxdate - _mindate
return
IF(
_difference=1,1,
IF(
_difference=7,2,3))
Measure 2 =
IF(
SUM('Table'[ID])=[Measure],1,0)
Next, we click the slicer, place Measure2 under Filter in this visual, and set the value to 1.
If you don't meet your requirements, could you show the exact expected result based on the table you shared?
Best regards
Community support team _ zhenbw
If this post helps,then consider Accepting it as the solution to help other members find it faster.
BTW, pbix as an attachment.
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |