Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
don_qlikview
Creator
Creator

Set analysis by ignoring one dimension

Hello Everyone,

I am trying to do set analysis and I have two dimensions, dim1 & dim2 and I am doing Sum([Amount]), so I want to ignore dim1 while doing set analysis. I wrote something like Sum({<dim1 = >}[Amount]) but it doesn't work.

Can anyone please help with this?

Thanks,

don

4 Replies
chiru_thota
Specialist
Specialist

The syntax you have written is  good and it is to ignore dim1 list box  selections.

Ignore dim.jpg

In other words what ever values you select from dim1 list box ,report will ignore those selections and give data for all dim1 values.

you want the same or you want data aggreagtion needs to be done only by dim2 ?

then your expression will be sum(Total<dim2>[Amount])

don_qlikview
Creator
Creator
Author

Thanks Chiranjeevi. I need aggregation on dim2 and I did it using the expression you wrote, but when I use your expression all the other expressions that I also need becomes blank. Any thoughts on why they are becoming blanks?

chiru_thota
Specialist
Specialist

I am not sure why it is happening.Can you give sample application by scrambling data ?

you can also use aggr function

Example:

aggr( sum(Sales), Country )    

aggr( nodistinct sum(Sales), Country )    

aggr( sum(Sales), Country, Region )

count( aggr( sum(Sales), Country ))   

qlikpahadi07
Specialist
Specialist

Hi Don,

attach a Sample data

PFA it's working do you have similar requirement ?