2

We have a scenario which is perfectly working fine in metabase but now we have to implement same logic and design in Apache Superset. We have to give a user ability to pass parameters to backend query in Superset which is pretty much simple in metabase but now we are struggling in Superset.

select 
customer_id,
(
select balance from  where cust_id = customer_id and date < {PARAMETER}
) previous balance,
current balance
from balancesheet 
where customer_id in {PARAMETER}
and date >= {PARAMETER} and date <= {PARAMETER}

Above is the requirement that we are trying to achieve in Superset but still could able to find the correct way.

f_puras
  • 2,521
  • 4
  • 33
  • 38
Owais Ajaz
  • 244
  • 5
  • 20

0 Answers0