Hello there,
I have a trouble that I didn't have until now on a dashboard filter. Once I removed the selection of a field filter on my dashboard, I cannot select it again . I did not make any change on this filter (wether on the SQL query filter parameters or in the dashboard filter parameters). I do not have problems with the other types of filters (date, numerics) and when I run this filter on the SQL query alone, there is no problem.
1 Like
Note : this seems to be exclusively on my SQL queries. In this dashboard I also have metabase questions that seems to work pretty well with the filter.
TonyC
July 3, 2024, 11:11am
3
Can you share the SQL of those questions
Yes of course. Here is the query and the 'hospital' variable settings in screenshot (named 'Etablissement' after).
Note : the tables named "metabase_list_x" were created specifically for metabase purpose ; as I need to use filed filter but that informations can be intertwined, we went for this solution.
SELECT
COUNT(DISTINCT r.id) AS count,
YEAR(r.primary_opinion_date) AS 'Year',
DATE_FORMAT(r.primary_opinion_date, '%m - %M') AS 'Month'
FROM
request AS r
LEFT JOIN partner AS p ON IFNULL(r.partner_id, r.landing_page) = p.id
LEFT JOIN reference AS rasp ON r.how_did_you_know_association_id = rasp.id
LEFT JOIN metabase_list_year ON YEAR(r.primary_opinion_date) = metabase_list_year.name
LEFT JOIN metabase_list_month ON DATE_FORMAT(r.primary_opinion_date, '%m - %M') = metabase_list_month.name
LEFT JOIN metabase_list_payer ON IFNULL(p.global_name, p.name) = metabase_list_payer.name
LEFT JOIN metabase_list_partner ON (r.partner_id = 14 AND r.source_category = metabase_list_partner.name) OR p.name = metabase_list_partner.name
LEFT JOIN metabase_list_acquisition_source ON rasp.name = metabase_list_acquisition_source.name
LEFT JOIN expert_location AS exl ON r.expert_id = exl.expert_id AND exl.active = 1 AND exl.main = 1
LEFT JOIN hospital AS h ON exl.hospital_id = h.id
LEFT JOIN metabase_list_hospital ON h.name = metabase_list_hospital.name
LEFT JOIN expert AS e ON r.expert_id = e.id
WHERE
1
[[AND {{year}}]]
[[AND {{month}}]]
[[AND {{payer}}]]
[[AND {{partner}}]]
[[AND {{acquisition_source}}]]
[[AND {{hospital}}]]
GROUP BY
`Year`,
`Month`
Clara
July 3, 2024, 2:52pm
5
I have the same problem, even in the latest version v0.50.9
But on my side, it can be not only for text filters but also for dates
1 Like
TonyC
July 4, 2024, 8:40am
6
Ans same for SQL questions? I think you might be hitting this problem:
opened 08:17AM - 02 Jul 24 UTC
Type:Bug
Priority:P2
Querying/Parameters & Variables
.Regression
.Team/QueryingComponents
Release-Blocker:50
.Possibly Already Fixed
### Describe the bug
After adding a new filter to a dashboard consisting of 3… Tabs, i wanted to link said filter to fields in some of the SQL-Questions. However selecting a field of one of the Questions has no effect on the GUI and instead throws an uncaught exception in the dev-console. The dashboard was initially created on an older version (0.48.x).
### To Reproduce
I was not able to reproduce the bug. As it seems, it only happens in that particular dashboard
### Expected behavior
The chosen field should be linked to the filter
### Logs
```
Uncaught (in promise)
Object { message: "Unknown type of ref", data: {…}, cause: null, name: "Error", description: undefined, number: undefined, fileName: "https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js", lineNumber: 259, columnNumber: 92509, stack: "91930/n1.$h@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92509\n91930/n1.ai@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92814\n91930/n1.bi@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92771\nn@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:886094\ne@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:885175\nt@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:885669\n85463/d/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:967752\neX@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:61674\n91930/n1.g.fa@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:138330\n91930/n1.y@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:50551\n91930/n1.qe@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:62128\n85463/find_column_indexes_from_legacy_refs/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:983024\n71733/r.Q2@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:755673\nfind_column_indexes_from_legacy_refs@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:982698\neO@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:7:8726\nc@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:110014\n75262/eS</</</n<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59974\n75262/eS</</</u<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59992\n75262/eS</</<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:60108\n13043/a/</</<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:7:508677\ndispatch@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:139:23609\n75262/eS</<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59333\n80190/g/</n/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:228608\n13043/a/</</<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:7:508677\n40148/P/f</n[r]@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:106:5324\n7722/tn</Z<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:100197\nonChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:102340\nonChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:95185\nhandleChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:246:79177\n89513/S/t<.children<.onClick<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:246:73870\neZ@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:216041\ne1@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:216195\n83975/n5/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234101\nn5@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234200\nn4@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234616\n83975/rt/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:240277\neY@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315802\n83975/rt/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:236079\nrt@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:236109\nt$@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:223828\ntX@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:223057\n39666/t.unstable_runWithPriority@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:144:9011\nir@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244439\neB@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315544\ntF@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:222848\nEventListener.handleEvent*re@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:235532\nn9@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:235174\n83975/n7/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234867\nn7@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234836\n83975/a8/n<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:294555\na8@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:296393\na6@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290271\n83975/a4/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290080\na4@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290085\naK@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:287029\n83975/ia/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244665\n39666/t.unstable_runWithPriority@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:144:9011\nir@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244439\nia@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244613\nio@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244546\neB@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315598\ntF@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:222848\n" }
cause: null
columnNumber: 92509
data: Object { N: 1, C: 16647951, I: 401412, … }
description: undefined
fileName: "https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js"
lineNumber: 259
message: "Unknown type of ref"
name: "Error"
number: undefined
stack: "91930/n1.$h@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92509\n91930/n1.ai@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92814\n91930/n1.bi@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:92771\nn@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:886094\ne@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:885175\nt@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:885669\n85463/d/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:967752\neX@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:61674\n91930/n1.g.fa@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:138330\n91930/n1.y@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:50551\n91930/n1.qe@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:62128\n85463/find_column_indexes_from_legacy_refs/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:983024\n71733/r.Q2@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:755673\nfind_column_indexes_from_legacy_refs@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:259:982698\neO@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:7:8726\nc@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:110014\n75262/eS</</</n<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59974\n75262/eS</</</u<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59992\n75262/eS</</<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:60108\n13043/a/</</<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:7:508677\ndispatch@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:139:23609\n75262/eS</<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:59333\n80190/g/</n/<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:228608\n13043/a/</</<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:7:508677\n40148/P/f</n[r]@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:106:5324\n7722/tn</Z<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:100197\nonChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:102340\nonChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:32:95185\nhandleChange@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:246:79177\n89513/S/t<.children<.onClick<@https://{{our metabase url}}/app/dist/app-main.dfd79efad72befa0fc5c.js:246:73870\neZ@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:216041\ne1@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:216195\n83975/n5/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234101\nn5@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234200\nn4@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234616\n83975/rt/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:240277\neY@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315802\n83975/rt/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:236079\nrt@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:236109\nt$@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:223828\ntX@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:223057\n39666/t.unstable_runWithPriority@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:144:9011\nir@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244439\neB@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315544\ntF@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:222848\nEventListener.handleEvent*re@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:235532\nn9@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:235174\n83975/n7/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234867\nn7@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:234836\n83975/a8/n<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:294555\na8@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:296393\na6@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290271\n83975/a4/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290080\na4@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:290085\naK@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:287029\n83975/ia/<@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244665\n39666/t.unstable_runWithPriority@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:144:9011\nir@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244439\nia@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244613\nio@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:244546\neB@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:315598\ntF@https://{{our metabase url}}/app/dist/vendor.30aa33f36fcc00be617e.js:83:222848\n"
<prototype>: Object { pa: {}, da: da(e, t, n), toString: toString(), … }
5 utils.js:210:10
```
The server logs around this time contain no info on this issue as no requests where sent when selecting the field to link
### Information about your Metabase installation
```JSON
{
"browser-info": {
"language": "en-US",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0",
"vendor": ""
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.23+9",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.23",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.23+9",
"os.name": "Linux",
"os.version": "6.7.4-200.fc39.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"bigquery-cloud-sdk",
"mysql",
"sparksql",
"clickhouse",
"oracle"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "8.0.34-26"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.7.10"
}
},
"run-mode": "prod",
"version": {
"date": "2024-06-25",
"tag": "v0.50.7",
"hash": "431cd8f"
},
"settings": {
"report-timezone": null
}
}
}
```
### Severity
not very severe, it only affects one dashboard
### Additional context
_No response_
Should be fixed with 50.10 can you upgrade and check please
1 Like
I was experiencing the same issue (I couldn't link dashboard filters to new SQL questions) : I just upgraded Metabase to v0.50.10, and I confirm that the problem is now solved !
3 Likes
We just upgraded Metabase to v0.50.10, and I confirm that this issue is fixed on my side !
Thanks a lot for the answers.
alit
October 18, 2024, 1:46pm
9
Hello Alex,
When you say you cannot select it again. You still have the column in the list of filters available but you cannot select it right ?
Or is it something different ?
Alex_DA
November 18, 2024, 10:18am
10
Hello alit,
Yes indeed, columns were available but I couldn't select them.
But it was all fixed.