Forum Discussion
Replicating Tableau Parameter/Filter in Power BI
- 2 years ago
Hi DKelso1992
To achieve the goal,
after you add field parameters please follow these steps :1. Add column to the parameters table:
2 . Create a flag measure for the desired filtering :
test =varsele_column=SELECTEDVALUE('Parameter'[selected column])returnSWITCH( TRUE(),sele_column="column 1" && max('Table'[Column 1])= 1 ,1,sele_column="column 2" && max('Table'[Column 2])= 1 ,1,sele_column="column 3" && max('Table'[Column 3])= 1 ,1,0)Put the "selected column" on the slicerand use a measure that you created as a filter to the roles visual:
result :
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- 2 years ago
Hi, DKelso1992
Maybe you need to filter other visuals by the created flag measure too or to modify the model.
I don't think there is an option to answer this kind of question without access to the report file.
Please share a link to the dummy pbix and I will try to help.If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- 2 years ago
Hi DKelso1992
This is not working because all filter manipulations are from parameters.
The parameters are not the same functionality as the dim table with a "normal key".So as I see the solution here is:
1. To use all parameter manipulations directly from the fact table.
The updated pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi, DKelso1992
Maybe you need to filter other visuals by the created flag measure too or to modify the model.
I don't think there is an option to answer this kind of question without access to the report file.
Please share a link to the dummy pbix and I will try to help.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi Ritaf1983 ,
Here is a stripped back version of the report file, you should be able to see the Parameter and JobRole_LOS_Mapping table, along with a MainData table - this contains the data used to create the visualisations. So when someone selects Column 2 in the parameter, it should then filter the data within the "MainData" Table to contain only Job roles which contain a 1 in Column 2 of "JobRole_LOS_Mapping".
Apologies if this is not very clear, I appreciate all your help thus far. Please let me know if you have any issues with the file.
https://drive.google.com/file/d/1sEAkYni3fCfkd9rbO34_yqMd_R9RJsxj/view?usp=drive_link
Thanks.
- Ritaf19832 years agoSuper User
Hi DKelso1992
This is not working because all filter manipulations are from parameters.
The parameters are not the same functionality as the dim table with a "normal key".So as I see the solution here is:
1. To use all parameter manipulations directly from the fact table.
The updated pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- DKelso19922 years agoFrequent Visitor
Hi Ritaf1983
Apologies for taking so long to respond, your solution has worked as expected - I had not considered merging the two tables into one but can see now how that option works better.
Thank you for all your guidance on this issue.
Wishing you a Happy New Year!
- Ritaf19832 years agoSuper User
Glad to help 🙂
Happy New Year!