Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
realpixel
Creator
Creator

Fix a specific value in a column

Hello,

I have a board with dimension, I want to fix a column with a specific value without filter.

1 - In column [SEC] there is a different code IAER, IMAR, etc. I want to see only IMAR row but I don't want to put a filter to choice with different value (IAER,IMAR,etc), I don't know if there is a possibility to fix a specific value?

SOCSECTotal FacTotal
SVIAER13300000251000
SVIAER13300000262000
SVIAER13300000273000
SVIAER13300000284000
SVIAER13500002795000
SVIMAR13300000196000
SVIMAR13300000177000
28000

2 - I want to have the sum of the column [Total Fac]. In this column there are 7 rows, it's possible the sum of this column (total = 7)?

3 Replies
Anonymous
Not applicable

1. Is SEC column a dimension?  If yes, use this as calculated dimension, and use suppress when value is null
aggr(only({<SEC={'IAER'}>} SEC), SEC)

2. Use this expression:
if(dimensionality()=0, count(distinct "Total Fac"), sum("Total Fac"))

Regards,

Michael

realpixel
Creator
Creator
Author

Thank you for reply.

1 - SEC column is dimension but when I add aggr(only({<SEC={'IAER'}>} SEC), SEC) and suppress when value is null nothing happens

SOCServiceTotal FacSECTTotalif(dimensionality()=0, count(distinct "Total Fac"), sum("Total Fac")
SVDIVS1330000025IAER1000-
SVDIVS1330000026IAER1001-
SVDIVS1330000027IAER1002-
SVDIVS1330000028IAER1003-
SVDIVS1350000279IAER1004-
SVSRV11330000019IMAR1005-
SVTRST1330000017IMAR1006-
7021-

2- I use the expression if(dimensionality()=0, count(distinct "Total Fac"), sum("Total Fac")) same thing no result in the new column

Anonymous
Not applicable

1.  It was SEC in you 1st screenshot, and now you show SECT.  Relpace in calculated dimension:

aggr(only({<SECT={'IAER'}>} SECT), SECT)

2. I'm guessing your field name and expression.  What is the expression there now, before my suggested change?  Is it a straight table?