Yes, you can do this. You would create your parameter, show the parameter control and create the corresponding calculated field to go along with it. Then place the calculated field on the color shelf for the chart, set the colors the way you like, and it should work as you want.
Thanks for help me.
I’m trying to do what you say but I don’t know how. How do I have to configure the calculated field?
Could you show an example?
Thank you very much!
1 of 1 people found this helpful
Sure, there is are several examples of how to use parameters in Tableau's training videos and Knowledge Base:
As an example, you can create a Parameter called "Choose Organization"
For the parameter, use a String list--for example, "Organization1" and "Organization2".
Create a calculated field, I usually named them accordingly--"Choose Organization Calculation":
when "Organization1" then [Org1]
when "Organization2" then [Org2]
Wherever you place this calculation, you will be able to swap organizations--On the color shelf, on the rows or columns shelf, etc.
This is a generic example, but hopefully it will get you started. If not, post a sample workbook and someone can try to help.
Thank you very much, it works perfectly! However, now I have another problem.
I want to embed my dashboard in a web page and depending on the user I want to show a specific Organization data with its own colors. For example, I have two organizations, A and B, and two users, A and B, and I need to show to each user the same graph with his own organization colors.
I know that you can specify the value of a filter in the url when you embed a dashboard in a web page, so users just see the data with that filter. Could you do the same with a parameter? I mean, could you specify in the url the value of a parameter?
I don’t know if I am explain it well.
Thanks for your help!!
I don't have much experience with embedding views outside of Tableau's Server site. You can certainly decide what certain users see in Tableau Server dashboards, using User filters.
Maybe someone with more experience can help with the URL filtering question...
Ok, don't worry and thank you for trying to help me!!