Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Suppose i have Temperature database.
In set analysis
How we can count or sum for certain range like in between >=-1 to -10 ?
In set analysis How we can count or sum of the temperature which is only
above the 0 or
only minus value or
Will not count for 0 values or
for example in following set analysis
Count({$<param_name={'Temperature'},branch_type=>}param_value)
and
Sum({$<param_name={'Temperature'},branch_type=>}param_value)
Thanks in Advance
Hi,
Try like this
Assuming Temperature is the field name
For Temperature >0 (Positive Values)
=Count({$<Temperature={'>0'},branch_type=>}Temperature)
For Temperature <0 (Negative values)
=Count({$<Temperature={'<0'},branch_type=>}Temperature)
For Temperature non 0 values (Other than 0)
=Count({$<Temperature-={'0'},branch_type=>}Temperature)
For -1 to -10
=Count({$<Temperature={'>=-1<=-10'},branch_type=>}Temperature)
Hope this helps you.
Regards,
Jagan.
Provide few lines of sample data...
You can use something like below...
Total Sales for Year 2010 to 2015
SUM({<Year = {">=2010<=2015"}>}Sales)
Hi,
Try this:
Count({$<param_name={'Temperature'},branch_type=,param_value={'>=-10<=-1}>}param_value)
Assuming param_value field holds the temperature value.
param_value={'>=-10<=-1'}
or
param_value={">=-10<=-1"}
Which one i have to use ?
I think Set Analysis will work in Qlik Sense also...
Year = {">=2010<=2015"}
or
Year = {'>=2010<=2015'}
Which one i have to use ?
param_value={'>=-10<=-1'}
Hi,
Try like this
Assuming Temperature is the field name
For Temperature >0 (Positive Values)
=Count({$<Temperature={'>0'},branch_type=>}Temperature)
For Temperature <0 (Negative values)
=Count({$<Temperature={'<0'},branch_type=>}Temperature)
For Temperature non 0 values (Other than 0)
=Count({$<Temperature-={'0'},branch_type=>}Temperature)
For -1 to -10
=Count({$<Temperature={'>=-1<=-10'},branch_type=>}Temperature)
Hope this helps you.
Regards,
Jagan.