Discussion Board for collaboration regarding Qlik GeoAnalytics.
Hello,
in SaaS with GeoOperations, can I use TravelArea with variables? Like this
=GeoOperations.ScriptEvalStr('Select TravelArea from TravelAreas(costValue="$(V_POL_COST)", costUnit="$(V_POL_COST_UNIT)", transportation="$(V_POL_TRAS)")', '$(V_POL_LON_LAT)')
And the variables are written on input variables.
Thanks
Riccardo
It works fine, on Qlik Sense SaaS.
I'm able to generate a travelarea on the fly with input variables, without reload the app itself and without any table inside the script.
In the position field inside the area layer maps, put it:
=GeoOperations.ScriptEvalStr('Select TravelArea from TravelAreas(costValue="$(V_POL_COST)", costUnit="$(V_POL_COST_UNIT)", transportation="$(V_POL_TRAS)")', '$(V_POL_LON_LAT)')
and 4 input variables
V_POL_LON_LAT is for a Longitude and Latitude value (ex. [40.123,12.123])
It works fine, on Qlik Sense SaaS.
I'm able to generate a travelarea on the fly with input variables, without reload the app itself and without any table inside the script.
In the position field inside the area layer maps, put it:
=GeoOperations.ScriptEvalStr('Select TravelArea from TravelAreas(costValue="$(V_POL_COST)", costUnit="$(V_POL_COST_UNIT)", transportation="$(V_POL_TRAS)")', '$(V_POL_LON_LAT)')
and 4 input variables
V_POL_LON_LAT is for a Longitude and Latitude value (ex. [40.123,12.123])
See also more examples of using variables as input when using geooperations in runtime here:
I have tried! Nice one! Thanks for sharing @Riccardo
Do you think we can do the same for geo-operation binning? Dynamic binning size based on user input at the dashboard. I saw in documentation, binning operation is only supported in load scripts.
@NashaYussof Binning is not supported in runtime. GeoOperations is based on SSE and in runtime the result is returned as an expression over a dimension. It's not possible to know beforehand how many bins are returned so hence it would be difficult to do it in runtime.