我正在尝试使用Tableau Server Client和Python从一个特定的视图生成一个csv文件,该视图有一个带有多个选项的过滤器,如下图所示。

是否可以在CSVRequestOptions中为同一筛选器指定多个值?
我多次尝试使用与第一个参数相同的筛选器名称(client)调用vf方法,但它只返回后一个参数的数据。
def view_populate_csv(view_item):
csv_req_option = TSC.CSVRequestOptions()
csv_req_option.vf("client", "client1")
csv_req_option.vf("client", "client2")
csv_req_option.vf("client", "client3")
server.views.populate_csv(view_item, csv_req_option)
with open("./view_data.csv", "wb") as f:
f.write(b"".join(view_item.csv))我还尝试只添加“( csv_req_option.vf("client", "(all)") )”选项,但不会返回任何内容
发布于 2021-01-11 16:45:36
csv_req_option.vf("client","client1,client2,client3")
https://stackoverflow.com/questions/65288923
复制相似问题