Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

Multiple Number formatting handling in KPI

Hi,

I am trying to add a KPI which populates the value on the basis of the filter (A) selection. If any value from filter A is selected, then it should display metric in percentage (%) else, if no value is selected, then it should display the value as a whole number. Somehow, I am not able to implement num() function in this if condition.

Expression:

if(GetFieldSelections()>0,

      num(($(v_weeklyVol)/$(v_weeklykpigoal_td)),'#,##.0%'),

      $(v_weeklyVol))

Any suggestions?

0 Replies