If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Could you look towards providing an option that allows the value to be displayed on the KPI widget to be defaulted if no records found? Currently, a dash is displayed. I would prefer to display a zero.
You should be able to achieve that in your data source. A data set of no records is treated as null, so you could use the COALESCE function to return a different value in such cases...
Code:
select COALESCE(sum(tot_sales),0) as kpi_num
from sales_file
where year=2024 and cusno=10001
Comment