The search text box works but the field filter give error as:
Unknown column 'collection_info.collection_name' in 'where clause'
Please help me with this.
The search text box works but the field filter give error as:
Unknown column 'collection_info.collection_name' in 'where clause'
Please help me with this.
{
"browser-info": {
"language": "en-US",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.10+9-LTS",
"java.vendor": "Amazon.com Inc.",
"java.vendor.url": "https://aws.amazon.com/corretto/",
"java.version": "11.0.10",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.10+9-LTS",
"os.name": "Linux",
"os.version": "4.14.225-169.362.amzn2.x86_64",
"user.language": "en",
"user.timezone": "UTC"
},
"metabase-info": {
"databases": [
"h2",
"mysql"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "5.7.34-log"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.6.2"
}
},
"run-mode": "prod",
"version": {
"date": "2020-12-03",
"tag": "v0.37.3",
"branch": "release-x.37.x",
"hash": "2f1e783"
},
"settings": {
"report-timezone": "UTC"
}
}
}
I resolved this. Thank you.
@Anum If you resolved it, then please post what the problem was and how you fixed it.
For reference: https://www.metabase.com/learn/building-analytics/sql-templates/field-filters.html
can you tell me how, because I am facing the same problem
Go to admin and change the data type of the attribute as category
@Mohamed011 Please read this: https://www.metabase.com/learn/sql-questions/field-filters
Field Filters should not have column or operator, just the variable.
And you cannot use table aliases.
You cannot use table aliases as @flamber said. You need to do this
where company={{company}}
@Anum No, if you are using Field Filters, then you should not have column or operator.
It should be:
where {{company}}
Please just read https://www.metabase.com/learn/sql-questions/field-filters
thanks for all it is working for me now.
I have another question, if I want to create a mathematics operation based on the results of two questions for example calculate the sum of one column in a table and the sum of another table, then calculate the percentage between them. how can i do that
@Mohamed011 Please create new forum topics, so it doesn't end up with one huge topic spanning many different questions/problems.
Sounds like you're looking for https://www.metabase.com/learn/questions/custom-expressions