Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
berkarmagan
Partner - Creator
Partner - Creator

Ignore selection in expression but I need to still that selection should effect dimension

Hi everyone,

I want to count my customers with ignoring year and month selection, i need whole customers count with aggrgeriton when needed with related dimensions - which year and month is not related- for example centraloffice id is related.

I add 2 ss below, when I try to count({<SalesYear=>}distinct CustomerCode) in table object, if i put year as a dimension then table shows all years which i dont want to see in this object. {1} also doesnt fit for my problem. I tried this:

count(distinct aggr(max({<SalesYear>}CustomerCode),'selecteddimension'))-> it still needs to get {<SalesYear>} in the count func then it shows all salesyears on the raws berkarmagan_0-1614684641589.png

I tried P function and it didnt solve my problem either.

And also I tried to give my exppresion into set analysis, which is like count({<CustomerCode= {"=count({<SalesYear>}distinct CustomerCode)>0"}>} distinct CustomerCode), it still affecting by year selections..

What i need is, count all customers by centraloffice with ignoring year selection but I dont need to see whole years on the table when I select just one year..

If you have any idea i ll be gratefull, thanks for now

this ss is calculating true for centrol office on dimension

berkarmagan_1-1614684669067.png

when I add Year as a dimension, calculation doesn't work, IF i pick 2021 in year, I should just see the table as above with year column with just 2021.

berkarmagan_2-1614684687309.png

 



Labels (2)
3 Replies
Ksrinivasan
Specialist
Specialist

hi,

pl, provide your expected result from two example table.

ksrini

berkarmagan
Partner - Creator
Partner - Creator
Author

I add more detail to main question

Ksrinivasan
Specialist
Specialist

hi,

sry,

please explain how you get this result from your table:

Ksrinivasan_2-1614681710519.png

Input Table1:

Ksrinivasan_0-1614681652860.png

Input Table2:

Ksrinivasan_1-1614681679940.png

Note: 

try this link

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

ksrini