You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a cube with two opposing dimensions, contract_num and ds_number. When I use these in the playground, the result is as shown in the screenshot(pic 1). Is it possible to combine different data? I understand that I can join the data, but in this case, all of the data is stored in a single table.
I need to establish a relationship between the parent_guarantee_id and the string_id in order to have the contract number supplied on the lines, as shown in the screenshot(pic 2).
contract_num is output if sql: ${guarantee}.parent_guarantee_id is null
ds_number is output if sql: ${guarantee}.parent_guarantee_id is not null
I think Cube.js might be able to do this, but I'm not sure.
Can you please help me solve this problem?
Problem
I have a cube with two opposing dimensions, contract_num and ds_number. When I use these in the playground, the result is as shown in the screenshot(pic 1). Is it possible to combine different data? I understand that I can join the data, but in this case, all of the data is stored in a single table.
I need to establish a relationship between the parent_guarantee_id and the string_id in order to have the contract number supplied on the lines, as shown in the screenshot(pic 2).
contract_num is output if sql:
${guarantee}.parent_guarantee_id is null
ds_number is output if sql:
${guarantee}.parent_guarantee_id is not null
I think Cube.js might be able to do this, but I'm not sure.
Can you please help me solve this problem?
Related Cube.js schema
I have simplified the cube, so I cannot provide the generated SQL. I believe it will not be necessary in this case.
The text was updated successfully, but these errors were encountered: