简体   繁体   中英

Tableau - Basic Graph

I've created a simple line graph in tableau. I'd like to add a drop down box where I can select from to change the line graph's X axis? How do I go about doing this?

Thanks!

Create a parameter str datatype and put dimension name you want to change.

then create a calculated field named x-axis and use a

case parameter 
when 'dim1' then dim1
.
.
end

put this calculate field on x-axis

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM