Questions tagged [metabase]
Metabase is an open source browser based analytics/data visualization tool.
385
questions
0
votes
1
answer
47
views
SQL-Query get best incidents by solution_time for each month
I have the following SQL-Query in Metabase:
SELECT
date_trunc('month', "resolvedAt") AS "resolvedAt",
(CAST(avg("solution_time") AS float) / CASE WHEN 3600.0 = 0 THEN ...
0
votes
2
answers
41
views
Column "vs" does not exist [closed]
As a beginner SQL student I'm having problems with query and sub-query specifically with existence of columns. I get this error:
Column "vs" does not exist Position: 1296
Here is the code:
...
-1
votes
0
answers
12
views
Linked Filters are not working in Metabase Dashboard
Linked filters in the Metabase Dashboard are not working even after the Limit this filter's choices has been selected.
What are the ways to use linked filters in Metabase?
I tried using bring it from ...
0
votes
0
answers
6
views
Metabase does not show the same value between the "table view" and a "visualisation view"
I want to display some values with a simple horizontal bar chart with a native SQL request. the result is ok when it's showed as a table, but the chart is not right, with random wrong values.
Here is ...
0
votes
0
answers
5
views
Error starting metabase, debug/permission?
I was trying to start metabase in its newer version but I got this error: Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for schema public
Position: 14.
And after I searched it ...
0
votes
1
answer
26
views
How to add column to nested column
I have a table with nested column
...
a UInt64
b Nested (b1 String, b2 String)
c LowCardinality(String),
...
I want to update the table to be
...
a UInt64
b Nested (b1 String, b2 String, **b3 String**...
0
votes
1
answer
35
views
Metabase to Snowflake Connection
I am trying to connect Metabase to Snowflake but getting the below error :
JDBC driver encountered communication error. Message: Certificate for <mja55108.us-east-1.aws.snowflakecomputing.com> ...
1
vote
1
answer
55
views
Invalid (private) key when connecting to Snowflake in Metabase
I'm running Metabase in a docker on a webserver. I'm trying to configure a connection to snowflake in the UI.
I generated my (working) pkcs8 keys in the following way;
ssh-keygen -t rsa -b 2048 -m ...
0
votes
0
answers
22
views
From_iso8601_timestamp in metabase
I have a table in athena with a string column in iso8601 format: 2023-07-10T20:53:32+0000
I want to be able to create query filters based on the date in metabase, tried to convert the string to date ...
0
votes
1
answer
44
views
Transpose or Pivot without using PIVOT or UNPIVOT SQL Editor in Metabase
I am trying to transpose my table columns and rows however transpose is not yet included in the functionality of Metabase. Now I am trying to manually do it in its SQL Editor however PIVOT is not a ...
0
votes
1
answer
74
views
Calculating processing time between two dates in mysql
I work as jr system administrator in a small outsourcing company where we offer IT services to other companies. We use osTicket as a Tickets Management System but reports and exports in this are quite ...
0
votes
1
answer
55
views
regex: how to select first, second, third match
Sorry I am quite new with regex.
I have items like:
"Cafes", "Footwear", "Women's fashion"
I can select the 3 items: /".+?"/
The first item only : /^".+?&...
2
votes
1
answer
41
views
Sqlproxy in GCE Virtual Machine can't connect to CloudSQL postgres database
I am trying to get Metbase runnning on a Google VM using a CloudSQL postgres instance as as database.
In the startup script I have the following code to start a sqlproxy:
sudo docker service create --...
0
votes
0
answers
74
views
Azure Devops Comment for better Visualization
The problem here is we are not able to view comments posted in the discussion on Azure Devops and extract and validate these artefacts which are created on BI tool metabase
We are expecting comments ...
0
votes
2
answers
159
views
Resetting admin password of Metabase in Docker Desktop Windows 11
Good day.
How do I reset the admin password of Metabase that is installed using Docker Desktop on Windows 11?
Thanks.
0
votes
0
answers
34
views
Problems with SQL-Query with multiple values in "grouped by"
I am using Matabase. I have the following tables: tms Taks, tms Sprint and tms TaskProjectRelationship and I want a query with this result in a bar chart where you can filter after the project to see ...
-1
votes
1
answer
84
views
How to add metabase ip address to access my rds which in private subnet through VPC?
Metabase - IP addresses to whitelist
There are some Amazon RDS databases that are in private subnet of my VPC.
I want to connect to them through Metabase. I tried to add these IPs in the Security ...
0
votes
0
answers
41
views
How to set the first day of the week to Saturday in postgresql for Jalali dates
I have to write a query in metabase that outputs the records whose done_date falls within the current week and in Jalali calendar, the first day of the week is Saturday. I need to change the first day ...
0
votes
0
answers
16
views
how to skip metabase synonym in oracle?
I'm trying to create a report in Metabase after connecting to an Oracle database, but I'm encountering errors because the DBA has set up synonyms by default. Do you happen to know how to configure ...
0
votes
1
answer
85
views
How to access my GCP VM on localhost:3000
I have Metabase running through a Docker image on a Google Compute Engine. The application defaults to port localhost:3000 however, I can't seem to figure out how to access this port on the Google VM.
...
0
votes
0
answers
15
views
Updarding of Metabase
I have updated my metabase from 0.43.2 to 0.46.0
but after one day it revert back to 0.43.2
What could be the possible issue
I want to know which file is used for metabase backups
I have created a ...
0
votes
1
answer
18
views
SQL: Trying to write code that counts the times an event occurs and then a specific event occurs after
I'm working in SQL and trying to find a way to find the subsequent value (next row) and then create a count of each time the first value happens and then the second.
Something like:
OG data
id
Sale ...
0
votes
0
answers
29
views
How Deploy Metabase on App Engine with VPC Connector?
im getting stuck when try to deploy metabase on app engine with vpc connector
service: metabase-dwh
runtime: custom
env: flex
manual_scaling:
instances: 1
resources:
cpu: 4
memory_gb: 8
...
0
votes
1
answer
61
views
How to connect metabase to snowflake
I have the following snowflake url that I use to login to the snowsight UI: zgb07638.us-east-1.snowflakecomputing.com
I want my metabase to connect to snowflake BD,I have entered the above account ...
0
votes
1
answer
24
views
Aliases not work to provide 2 instances of one table
I am trying to pull both shipper and consignee from one table by using aliases but only shipper is working, not sure what I need to do. below is the code I am using with the joins
SELECT 'b_id'as '...
0
votes
0
answers
45
views
SQL - Convert / Cast and return original value if not successful
I'm trying to remove html tags from a string in a column.
And I need kind of a fast quick solution that works.
I wanted to use this solution here
replace(replace(replace(CAST(CAST(replace([...
0
votes
0
answers
47
views
Metabase Get Report Source Data for each Report
This is my query to get the logs to my reports of Metabase:
SELECT view_log.user_id as "User Id Log",
CONCAT (U.first_name,' ', U.Last_name) as UserFullName,
U.last_login as &...
0
votes
0
answers
82
views
Extracting unique values from json arrays in PostgreSQL within Metabase
How can I select distinct values in json arrays using PostgreSQL in Metabase?
I'm using metabase.
I have a column with nest of json, and I want to extract the values using distinct.
I have a column ...
0
votes
1
answer
86
views
New service in existing Kubernetes Cluster gives 503 Temporarily Unavailable
I'm trying to run a Metabase deployment in an existing, working, EKS kubernetes cluster, but keep getting 503 Service Temporarily Unavailable.
The pod is running, the ports seem to be assigned ...
0
votes
1
answer
23
views
Postgre divider 0 result
i have the following data in Metabase
i tried get the percentage of do_qty to target_lembar.
i tried to calculate using the following query:
select distributor_id
, target_lembar
, do_qty
, do_qty::...
1
vote
1
answer
205
views
(Fiddle Link Available) ClickHouse changing column timezone by using a separate timezone column(string)
Fiddle Link -> https://fiddle.clickhouse.com/6a18d469-7019-44d2-a65b-828f5c6be755
Example Clickhouse Schema
enter code here
DateTable
Date
Timezone
May 19, 2023, 04:00:00
Europe/London
May 19, ...
0
votes
1
answer
30
views
The sequence in string value (created by string_agg) in table_A is altered when join into table_B
I encountered a very weird issue recently with PostgreSQL (in metabase environment, as I don't have access to database directly)
In table_A, I use string_agg() to combine a series of string into one ...
2
votes
1
answer
368
views
Switch to Docker-based deployment of Metabase (>=v0.46) on Heroku
Since Metabase deprecated Heroku support with the release of v0.45, the metabase-deploy workflow doesn't upgrade to the latest version anymore.
Going forward, it seems we need to use Docker-based ...
0
votes
0
answers
205
views
Metabase Query Request Error: "API endpoint does not exist."
I'm tryin to get a dataframe from a query on Metabase. This is my code:
def get_metabase_data(query_ids, username, password, url):
session = requests.Session()
login_data = {"username&...
0
votes
0
answers
85
views
Metabase-BQ Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials
While connecting Metabase with BigQuery, getting following error, Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials.
403 Forbidden POST https://www.googleapis.com/...
0
votes
0
answers
86
views
Migration of Metabase from H2 db to Postgres
The current metabase h2 database runs fine on v0.44.6. However, when I upgrade Metabase to the latest or attempt migrating to postgreSQL I get the following error. Can you please help? Thanks
org.h2....
0
votes
0
answers
49
views
Edit Metabase cards' description box via Google Sheets via Metabase API
I want to connect Metabase and Google Sheets. I want to be able to edit a card's description in the description box of Metabase via a cell in Google Sheets that has the card's URL as another column. I ...
0
votes
0
answers
57
views
Build Metabase with planetscale db as a production db
We are trying to deploy Metabase docker on an AWS EC2 instance with a planetscale db as a production db. However, we get the following error:
Caused by: java.sql.SQLTransientConnectionException: Could ...
0
votes
0
answers
40
views
Post request to metabase does not retutn any thing with data
I wrote this code to extract data from a query I wrote and it requires 2 variables: start_date, end_date.
This is the code I wrote:
import os
import json
import pandas as pd
import requests
from io ...
1
vote
0
answers
190
views
Add Trino driver to metabase in docker - does not see Trino source in Metabase Web UI
I am trying to have Metabase in a Docker container and access Trino through it. So far I have added the trino-jdbc.jar in the plugins folder. But when I access the web ui and I am trying to add a new ...
0
votes
1
answer
44
views
Unable to exclude collections when extracting Metabase exposures
I am trying to perform exposure extraction from my dbt models. I am following this example. My exposure file is being generated but I want to exclude some collections from Metabase. This is my current ...
2
votes
0
answers
44
views
Automating redshift foreign key mapping on Metabase UI
I have a data pipeline running which brings in data from multiple data sources to AWS redshift.
All the data within redshift have their own foreign key mappings done and then the data is added.
When I ...
0
votes
1
answer
107
views
Get the most frequent value of a column and how frequently it occurs
My query concerns two tables on my app, areas and happenings. An area has many happenings with each happening having a primary_area_id foreign key. I'm trying to get the most frequent day that ...
1
vote
1
answer
43
views
How to get a percentage of weeks that have at least one occurrence?
In my app an area can have many happenings. I want to find out over a given timespan, what percentage of those weeks had at least one session listed. It doesn't matter how many were listed, so long as ...
0
votes
0
answers
31
views
Metabase Visual
I have a customer table with the following fields
id
timestamp
1
September 21, 2018, 6:13 AM
12
March 03, 2022, 12:56 AM
I want to develop a visual that shows the total number of customers (New ...
0
votes
1
answer
93
views
API adds default value to optionnal parameter
I am discovering the Metabase API And trying to work with it, here posting cards (questions) to my database.
I have been able to successfully push cards which worked well, but I have encountered a ...
1
vote
1
answer
156
views
Does MetaBase provide drill-down functionality?
I want to implement drilling in metabase dashboards.
I discovered 'Custom Destinations' option which navigates user to any link upon clicking on a chart, but it does not carry forward the filter for ...
0
votes
0
answers
71
views
How can I join 6 tables that are getting their records multiplied? Metabase
POSTGRES SQL /// READ ONLY /// METABASE
I was using a simple INNER JOIN to join the tables, but the records multiplied and I ended up with 150000 records when I only had ~450. So I check on ...
0
votes
0
answers
56
views
Permission denied for schema when syncing and scanning Metabase
Im seeing thousands of 'permission denied' errors every time Database syncing and Scanning for Filter Values are done. For some reason metabase user is trying to access schemas other than the ones ...