Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nithin_miryala
Creator
Creator

Dimension should not be filtered based on selection

Hi Everyone,

I have a chart which has 5 Cpt's it when i do not select nothing, but when i select a provider it narows down to 3 of them,

I want the Dimension to have 5 even if select the any provider

Here is the expression: = aggr(Only({<EMVisitTypeDSC={'NPV'},Provider=>}CPT),CPT)

Let me know your thoughts

1 Solution

Accepted Solutions
12 Replies
sunny_talwar

What if you try this

Aggr(Only({1<EMVisitTypeDSC={'NPV'}>} CPT), CPT)

nithin_miryala
Creator
Creator
Author

Tried it. it still filters the CPT

sunny_talwar

This is used a dimension, right?

nithin_miryala
Creator
Creator
Author

Yes

sunny_talwar

Would you be able to share a sample to show where this isn't working? I don't see anything wrong with the syntax

Qrishna
Master
Master

Aggr(Only({1<EMVisitTypeDSC={'NPV'},Provider=>} CPT), CPT)

nithin_miryala
Creator
Creator
Author

Please find the attached sample.

Please look at it

sunny_talwar

I think you forgot to ignore selection in the expression

=sum({<EMVisitTypeDSC={'NPV'}, ProviderNBR>}EMVisitCNT)/

sum({<EMVisitTypeDSC={'NPV'}, ProviderNBR>}TOTAL EMVisitCNT)

nithin_miryala
Creator
Creator
Author

I did it intentionally as i want to show zero on the that particular CPT.

and i should be able filter graph but not the number CPTs in the dimension.

is that possible?