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.

Links:

132 questions
2
votes
1 answer

Cube.js React QueryBuilder : "This month" and "Weekly" not getting data from start of week if month changes mid-week

I understand why "This month" combined with "Weekly" doesn't get the full week's data if the month starts at the middle. For example the week starting September 27th still shows as starting 2021-09-27 but the data is only taken from 2021-10-01 as…
2
votes
1 answer

getting this error while trying to run cube js

I'm getting this error while trying to run cube js with the default command in the getting started docs. I've started this in a folder and running it in docker. Warning. There is no cube.js file. Continue with environment variables Cube Store…
Chen
  • 281
  • 5
  • 14
2
votes
1 answer

How to add Significance Testing and Correlation calculations into the cube.js flow?

We are currently using cube.js for its data infrastructure, querying and API capabilities. However as part of our requirements, we need to perform statistical calculations like significance testing and correlations on certain measures. Is there an…
M. Dada
  • 231
  • 1
  • 2
  • 5
2
votes
1 answer

How to get data based on username in cube js

DEFINITION I have connected my cube js backend to mongodb. I am storing documents inside my mongo db database in a following way. THIS IS HOW MY DOCUMENT LOOKS LIKE IN MONGO DB { anonymousId: "bdee014b-09e1-4d79-bcf1-c3cc91cd4101" user: "abc" …
Mohammad Basit
  • 971
  • 6
  • 18
2
votes
1 answer

Cube.js - Unable to join 2 or more tables but keep getting a "Can't find join path to join" error

I am new to Cube.js and I am trying to get data from 2 or more tables using the join. The original SQL query would look like this which would join multiple tables together to display data from all 3. SELECT wo.EndDate AS DueDate, p.PurchaseNumber AS…
teej2542
  • 577
  • 3
  • 10
  • 27
2
votes
1 answer

How to achieve an indirect join in Cube.js?

I might misunderstand cube.js joins, but in SQL I can do a join from a table removed by one like so: SELECT * FROM a LEFT JOIN b ON a.name = b.name LEFT JOIN c ON b.state = c.state; My question is: how do I achieve this in cube.js? I tried to…
lve
  • 438
  • 5
  • 14
2
votes
1 answer

back-end architecture to integrate with Cube.js

I'm looking for advice choosing a back-end architecture for a web app. In the app, users upload tabular data from multiple files. Their data is then processed, aggregated and visualized. Data is private and each user has their own dashboard. I…
John
  • 949
  • 1
  • 9
  • 20
2
votes
1 answer

In cube.js, how would I query over contents of an array?

Let's say I have an array of info (ex: tags: ['red', 'blue', 'green'] ) in my data. How would I add that to my cube(s) to do something like a filter on tags array contains a particular value? I'm specifically using the Athena driver with…
Jared Short
  • 140
  • 6
2
votes
1 answer

Cube.js: Can't find join path to join

I'm taking over a website. I could not reach the previous developer anymore. He decided to use cube.js and once showed me a working KPI page with charts. Now, I'm trying to make the page work on my side, and understand what he did. I have installed…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
2
votes
2 answers

How can I apply limit filter to the timeDimension property of cubeJs?

Below is the scenario where I'm trying to apply a limit of 2 using cubejs. Here is the json query for this : { "measures": [ "actors.actorscount" ], "timeDimensions": [ { "dimension": "actors.createdAt", …
2
votes
1 answer

How to get COUNT of records return by measures in JSON query of CubeJS

I want to get a count of records return by the below JSON query of CubeJS. { "measures": [ "Employee.salaryTotal" ], "timeDimensions": [ { "dimension": "Employee.createdat" } ], "dimensions": [ "Employee.isactive" …
Harshal Nathe
  • 95
  • 1
  • 8
2
votes
2 answers

I'm getting the following error after generating a schema and clicking on build, could this be due to having underscores and dashes in the table name?

Compiling schema: {"version":"default_schema_version_78dca52738894dbb23e7069f2e88ae73"} Internal Server Error: {"authInfo":{"iat":1570115494,"exp":1570201894}} Error: Compile errors: test_1-stats cube: child "name" fails because ["name" with value…
2
votes
1 answer

cubejs command not found | After Install I am unable to run command

I install cube.js using this command yarn global add cubejs-cli after executing its shown as done. when I enter the command cubejs terminal said cubejs command not found. I don't know how to move forward. Please help me
1
vote
1 answer

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=cubestore_worker_1:9001 ENV…
1
vote
0 answers

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 pending API requests? Thanks in advance.
1
2
3
8 9