Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression to show measures in %

Hi,


I have to create an expression to show 2 measures in % using Bar chart(stacked) and having the below fields.    


I have some 7 Sol_App as Dimension and Solution ID, Sol_flag= Created(New), Sol_flag= Reused.

@

Expression 1: % of New solution by Application.

Expression 2: % of Reused solution by Application.


Could someone pls help me on logic how to create the expression for this? I'm new to QlikView.


Regards

Velan

4 Replies
sujeetsingh
Master III
Master III

At number option in properties there is option of show in percentage you can check it.

Please explain in more words.

If possible post a sample please

Not applicable
Author

Hi Sujeet,

Thanks for your comments. In Number tab we have that option and I have used it before.

if(GetFieldSelections(Sol_Application)='LG',

count({<Sol_flag={'Created'},Sol_Application={'*LG*'}-{'Asia Commodity Template'}>}count(DISTINCT SOLUTION_ID)). This is just a base. We need to create from this expression.

Likewise I need to create to show the 2 measures, New Solution & Reused solution in %.

Regards

Velan

sujeetsingh
Master III
Master III

Use num() fumction to do this

You can use as

if(GetFieldSelections(Sol_Application)='LG',

num(count({<Sol_flag={'Created'},Sol_Application={'*LG*'}-{'Asia Commodity Template'}>}count(DISTINCT SOLUTION_ID) ,'#,##0.00%')

Hope it helps.

Not applicable
Author

I will apply this logic and let you know.

Thanks Sujeet.!!