I've never tried passing parameters in from an Image Dashboard action, but in my experience you have to have all of the Parameters in the View (in some fashion) in order to pass them into the URL action.
My suggestion is adding the Image as a custom shape into Tableau.
Create a calc like
IF 1=1 THEN "Shape" END
Drag that onto shape and select the Image. Format size as needed.
Next create three calcs, one for each parameter.
Drag these onto the detail shelf. If you get a lot of images, create a calc LAST() = 0 and drag onto your filter shelf and select True.
Then on the Dashboard Action dialog, follow the URL methods described in this post
You can pass in the parameters easily by Inserting from Field in the dialog.
If you need more help on this, I'd be happy to create a workbook example, unfortunately it may be a day or two before I could get to it.
Thank you Rody. I will try this. Sounds like I have to use a dimension field and not a Tableau parameter. I was using Tableau parameters. Maybe I'm mixing up the use of "parameter", Tableau vs. in a URL. I'll try with calculated fields that point to the Tableau parameters I'm using. I'll let you know if it worked. If not, I just might need the example you offered! Thanks again, Phil
I tried it and it didn't work for me, but I'm not sure I did it right. Didn't quite follow the calc instructions you provided.
The image below shows the parameters I have on both dashboards. These are the values I want to pass.
In dashboard #1 I have an image with the URL below set. When the user clicks on the image it takes them to dashboard #2. I want to pass the parameter values above from dashboard #1 to dashboard #2.
Division, Choose Date Range, and As of Date are all Tableau Parameters.
DV, CDRV, and AODV are all Tableau Dimension Calculated Fields that equal each parameter, e.g. DV=Division Value. My calculated fields just equal the Tableau parameter value, e.g. DV=[Division].
Thanks again for any help.
You have to use the exact parameter name (Case Sensitive) when passing in the value.
As well as using & between each parameter, instead of ?. So if you parameters are like the one above the URL would be
Try that, and let me know what happens.
Thanks for catching the & vs ?. I've corrected that. I also read that I needed to eliminate the hash tag after the view in the URL. Having done that, I can get it to work! BUT...
I can only make it work if I enter a value, like in this URL. The Division here is MKT (Marketing).
I want the value to be determined based on what I had selected in the first dashboard. I used the calculated field below, [DivisionValue], but it doesn't work.
Any idea how I can make the value variable based on the selection in the first dashboard?
1 of 1 people found this helpful
This kinda goes back to the original post of why you need to Create a Calc for each Parameter and place it in the detail shelf of the image (Shape in Viz).
By doing this, the Image (Shape in Viz) will contain the parameter values (Based on whatever the user selected)
That way when you set up the Dashboard Action for that Viz (Which is just your image), you can pass in the Parameter values.
Does that make sense? Without creating a calc for each Parameter and putting it into the View (In some fashion), Tableau has no idea what value to pass in.
That worked! Now I understand why the URL from the image wasn't passing the values. Thank you so much!
Glad I could help work you through it!
I went through this same situation before, so I can understand the frustration!
I am facing something similar but not to resolve the issue of passing parameter value.
Please please help me I need urgent help on this.
my question link is here.