Forum Discussion
Create a filtered table from another table using slicer value
| Country | State | Company |
| US | NY | ABC |
| US | Texas | ABC |
| Canada | BC | XYZ |
| Canada | Toronto | LMN |
| Canada | Vancouver | PQR |
| Canada | BC | STU |
| Germany | Berlin | HIJ |
| Country | State | Company |
| US | NY | ABC |
| US | Texas | ABC |
Thanks for your help.
- Anonymous3 years ago
Hi anwarbi ,
You can store data in the database, using the direct query connection mode. Then create a new parameter, modify the advance editor as shown below, save and close, we can create a table and then bind the parameter to the field. The result is shown in the figure below. At this time the slicer will filter the data source data, but because it is a direct connection we can not see the data on the data view. Dynamic M query parameters will have some restrictions please refer to the documentation for details.
Table = UNION(VALUES(TESTTABLE[Company]),{"ALL"})Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- AnonymousNot applicable
Hi anwarbi ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table and a measure.
Table 2 = 'Table'Flag = IF(MAX('Table 2'[Company])=SELECTEDVALUE('Table'[Company]),1,0)(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- anwarbiHelper III
Hi,
I don't really want to add a filter at a visual level but I need to filter the underlying data table (please refer screenshot) of the data table when filtered manually. This is the filtered result I need at a data level by selecting a company name through slicer.
Thanks
- AnonymousNot applicable
Hi anwarbi ,
You can store data in the database, using the direct query connection mode. Then create a new parameter, modify the advance editor as shown below, save and close, we can create a table and then bind the parameter to the field. The result is shown in the figure below. At this time the slicer will filter the data source data, but because it is a direct connection we can not see the data on the data view. Dynamic M query parameters will have some restrictions please refer to the documentation for details.
Table = UNION(VALUES(TESTTABLE[Company]),{"ALL"})Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.