-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unable to connect dashboard number filter to number variable of SQL query card #44266
Comments
@amit-sides I couldn't reproduce this issue with a new SQL query and a number variable. Could you reproduce the issue using the "Sample Database"? |
@amit-sides could you please share more details about your configuration?
|
@amit-sides this question comes from an old version of Metabase, is that correct? can you give us the question metadata? you need to hit /api/card/ |
One thing is that |
ok so I wasn't able to repro with a question coming back from v38... so I guess that we really need to figure out how to hit this one |
Sorry for the delay people, thanks for the help! @ranquild @paoliniluis @uladzimirdev select registration_datetime
from BALANCE
WHERE 1=1
[[AND registration_datetime > date('now', "-" || {{d}} || " days")]]
limit 10 Here is a video showing the same problem with this query: It took me some time, but I managed to create a similar query with the sample data db, as @ranquild requested: SELECT
"PUBLIC"."FEEDBACK"."ID" AS "ID",
"PUBLIC"."FEEDBACK"."ACCOUNT_ID" AS "ACCOUNT_ID",
"PUBLIC"."FEEDBACK"."EMAIL" AS "EMAIL",
"PUBLIC"."FEEDBACK"."DATE_RECEIVED" AS "DATE_RECEIVED",
"PUBLIC"."FEEDBACK"."RATING" AS "RATING",
"PUBLIC"."FEEDBACK"."RATING_MAPPED" AS "RATING_MAPPED",
"PUBLIC"."FEEDBACK"."BODY" AS "BODY"
FROM
"PUBLIC"."FEEDBACK"
Where 1=1
[[AND "DATE_RECEIVED" > NOW() + INTERVAL '-{{d}}' day]]
order by "DATE_RECEIVED" asc
LIMIT
10 and again, video showing the same problem with this one: |
Not sure what you meant by it, but: If you mean that I created the question in an older version, then I'm not sure but I think it's irrelevant since I created today the |
You are probably right, I don't fully understand the naming of things in metabase. I wanted to emphasize I use SQL query and not the UX builder for questions. |
I added videos and queries. I prefer not to share network responses right now because it might leak my IP and other things, but if all the info I provided isn't enough I will try to capture the responses and censor them as last option |
@amit-sides thanks, really helpful! it should be enough for a fix, we'll let you know if we need more data |
@amit-sides the fix will be released in 0.50.7 |
Describe the bug
I have a dashboard with multiple cards.
Some of them have a number variable called "Days".
My dashboard has a number filter called "Days" as well that is connected to all my query cards.
Today I tried adding a new SQL query card with a number variable, but I was unable to connect it to the card.
I also noticed that when I disconnect that number filter from a card I previously connected to the filter, I'm unable to re-connect it afterwards, so I don't think it's an issue of the SQL query, but rather something was changed regarding the connection process between the filter and the cards.
Video example:
https://github.com/metabase/metabase/assets/69360073/bd404400-5881-43cb-8a54-1e717c425788
To Reproduce
Expected behavior
The number filter should connect to the number variable of the SQL query card.
Logs
Information about your Metabase installation
Severity
annoying
Additional context
No response
The text was updated successfully, but these errors were encountered: