Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to put the '(All)' value in filter by using req_option #1503

Open
irisx0719 opened this issue Oct 15, 2024 · 1 comment
Open

how to put the '(All)' value in filter by using req_option #1503

irisx0719 opened this issue Oct 15, 2024 · 1 comment
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request

Comments

@irisx0719
Copy link

Describe the bug
I have several filter put in report, the original view is setting filter as value 'a' and when I pulled the data through script, I want to include them all, I used req_option and set the value as '(All)', but there is no changes

To Reproduce.

po_req_option.vf('Risk Category', '(All)')

Results
no thing different compare to the original view data

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

@jacalata
Copy link
Contributor

jacalata commented Jan 3, 2025

So you have a view that has this data

[Risk Category, A]
[Risk Category, B]

and a filter on the view is set to show only A

I don't think using the special value '(All)' is accepted through the API. You probably need to explicitly pass in all the possible values, e.g.
po_req_option.vf('Risk Category', 'A&B&C')
This is based on the info at https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_filtering_and_sorting.htm#Filter-query-views

@jacalata jacalata added the help wanted A user needs help, may be a mistake, a bug or a feature request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request
Projects
None yet
Development

No branches or pull requests

2 participants