Forum Discussion
How to filter a table based on user input?
- 4 years ago
Hi Anonymous ,
No worries. Yes that can be done.
Just create a new measure like below :_val =var _sel = SELECTEDVALUE(dates[Dates])var _cond = if (MAX(SampleData[Date]) >= _sel-13 && MAX(SampleData[Date]) <= _sel , 1, 0)return_condThen add this measure as a filter on the visual and set its value to 1Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
Also, if I had to save this filtered table and then join with another table and display that in the report - can I do that?
so, everytime a user selects a date, I filter the table and perform a join with another table and display that in the report. Is this possible?
Hi Anonymous ,
You don't need to save the table. You can smply create a relationship between Table2 and the other table and drag and drop columns from the other table into your visual. The values in the otehr table will be filtered automatically based on the relationship you've created.
Kind regards,
Rohit