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

custom filter on two columns? #844

Open
taker218 opened this issue Oct 5, 2023 · 1 comment
Open

custom filter on two columns? #844

taker218 opened this issue Oct 5, 2023 · 1 comment

Comments

@taker218
Copy link

taker218 commented Oct 5, 2023

Hi,

I'm currently trying to get a custom filter to work on two columns.
If I apply the custom filter to each off them individually, it's working as expected, but I need to have the same filter (filter different time periods on a date) on two columns, so I can filter both of them.

Here's the code for the custom options that I thought would work
custom_options: { cols: [1,2], texts: [ [ 'Letze Woche', 'Letzer Monat', 'Letzten 6 Monate', 'Letztes Jahr' ] ], values: [ [ '>' + oneweekago, '>' + onemonthago, '>' + sixmonthsago, '>' + oneyearago ] ], sorts: [false] },
The variables are declared prior to this and work just fine, if I have "cols:[1]" or "cols:[2]" in the file, but not with both of them in there.

Is this even possible or am I missing something here?

Best regards

@rajpatelukyahoo
Copy link

I am having the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants