Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
We have tracking frequency namely Daily, Weekly, Monthly, Quarterly which we have shown in dropdown using field parameter.
The dropdown should show frequencies which are equal to or greater than the lowest frequency of the selected KPI. Eg If the user selects Weekly, dropdowns should only have Weekly,Monthly,Quarterly.
Also the selected frequency column is stored in KPI table.
We have order column in both KPI table and field parameter table for tracking frequency.
Tracking Frequency | Order |
Daily | 1 |
Weekly | 2 |
Monthly | 3 |
Quarterly | 4 |
How can I filter values of dropdown (field paramater) based on the selected frequency?
Solved! Go to Solution.
Hi @VaibhaviSawant ,
I suggest you to create an unrelated table for slicer.
Lowest frequency =
DATATABLE(
"Parameter",STRING,
"Order",INTEGER,
{{"Daily",0},
{"Weekly",1},
{"Monthly",2},
{"Quarterly",3}
}
)
Then create a measure.
Measure =
VAR _SELECT = SELECTEDVALUE('Lowest frequency'[Order])
RETURN
IF(MAX(Parameter[Parameter Order])>=_SELECT,1,0)
Add this measure into parameter field slicer and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It works!
Hi @VaibhaviSawant ,
I suggest you to create an unrelated table for slicer.
Lowest frequency =
DATATABLE(
"Parameter",STRING,
"Order",INTEGER,
{{"Daily",0},
{"Weekly",1},
{"Monthly",2},
{"Quarterly",3}
}
)
Then create a measure.
Measure =
VAR _SELECT = SELECTEDVALUE('Lowest frequency'[Order])
RETURN
IF(MAX(Parameter[Parameter Order])>=_SELECT,1,0)
Add this measure into parameter field slicer and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
22 | |
3 | |
3 | |
2 | |
2 |