Questions tagged [cube.js]
For questions specific to the open source modular framework for building analytical web applications called "Cube.js". Where possible also include a tag for the framework specific "Cube.js" wrapper that you may be utilizing. E.g. [reactjs], [vue.js], etc.
131
questions
0
votes
0
answers
13
views
Dynamic table name in cube.js generated sql queries
How can I dynamically change table name in the sql statements generated by cubejs?
I query open search via sql interface. Our index name consists of name + date partition, e.g. transactions_2023_01_31....
0
votes
0
answers
55
views
Cube JS dashboard app failing to load dashboard
I'm trying to make a basic dashboard with cube.js (which I am new to). When clicking the "Add to Dashboard" button in the GUI for a chart, it comes up with an error saying that the dashboard ...
0
votes
0
answers
10
views
How to solve Actuals + Budget requirement
This is for a financial application using cube.js. Actuals and Budget are in separate tables, each with Time and Account as dimensions. Suppose I would create 2 cubes, one for Actuals and one for ...
0
votes
0
answers
43
views
Can we Connect Cubejs As Analysis service in Excel?
I want to use CubeJS as Analysis service in Excel just like we do with SSAS and Power BI. Is there any possibility for that? I couldn't find anything in documentation regarding that.
Thanks in advance....
1
vote
1
answer
170
views
Docker images unable to talk to each other
I am trying to make two images depend on each other. One acts as the master and the other one is a worker. Here are the two Dockerfiles
FROM cubejs/cubestore:v0.31.58-arm64v8
ENV CUBESTORE_WORKERS=...
0
votes
0
answers
75
views
How to modify Cube.js schema to fix "column must appear in the GROUP BY clause or be used in an aggregate function" error?
I encounter an issue using Cube.js with avg measures. This is an example of two cubes, "Posts" and "Comments", with the following schema:
const schemaName = 'my_schema'
cube('...
0
votes
0
answers
64
views
Unable to establish a connection between Apache Superset and cube js using SQL API
We have deployed cube.js using docker in one of the linux machines (Ubuntu). We have deployed Apache Superset in another linux machine (Ubuntu). We are trying to establish a connection between "...
0
votes
1
answer
136
views
Cube.dev - how to have the parameter "today date" in rolling window?
I have a PostgreSQL database in which users can order from a start date to an end date.
I want to know, for each day, how many users would be able to order.
Let's make an example, given:
id
from
to
...
0
votes
0
answers
64
views
How to use dynamic username for postgresql database connection in power bi based on user
I am using Power BI with cube.js as the data source. The connection to Cube is set up using the PostgreSQL connector in Power BI.
I am trying to figure out, how I can change the username, which is ...
0
votes
1
answer
174
views
Why am I getting an "Invalid token" when requesting the cube.js API?
I have deployed cube.js via a Helm chart I've created to an AWS EKS cluster. One of the first errors I encountered was that the environment variable CUBEJS_API_SECRET is required. In a docker-...
0
votes
0
answers
38
views
cube.js API load endpoint responds with 413
When calling the load endpoint with a query > ~1700 bytes, we are receiving a 413 (request entity too large) error. We have narrowed it down to between 1706 and 1758.
Steps to reproduce the ...
0
votes
0
answers
18
views
Boolean logic operators in filters on Cube.js measure
I know that one can use boolean logic operators in filters on queries, such as the following (taken from the docs):
{
or: [
{
member: 'visitors.source',
operator: 'equals',
...
0
votes
1
answer
172
views
How to integrate cube.js API in simple javascript code?
How to integrate cube.js API in simple javascript code?
I just want to use cube.js API in my simple html and js page.
Can anybody help me with that?
In cube.js docs, they integrate it with react, vue ...
0
votes
0
answers
54
views
Cubejs Access Other Cubes By Variable
Given the following Cube, I can use a function to create dynamic measures.
cube(`Creatives`, {
sql: `SELECT * FROM public.creatives`,
joins: {
Events: {
relationship: `hasMany`,
...
1
vote
0
answers
137
views
How to cancel/ abort pending cubejs api request
I am working with Cube.Js in react.
When i am changing the the route (Navigating to another page), I need to cancel the running request. How can we achieve this.
Do Cube.js has any provision to cancel ...