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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

How NOT TO TAKE into account dimension

I have two dimension Client and Contract, and some Money values.

I have to decide, if Client is high money or low money ... like in right picture.

Then I need to add another dimension Contract for another calculations, but in Test expression I have to avoid it somehow.

Is it possible NOT TO TAKE into account selected dimension in expression?? (left picture)

Something like AGGR function, but without chosen dimension.

Test.jpg

P.S.: based on my previous problem

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

I think this is what you are after - use a qualified TOTAL, like

     Sum(TOTAL <Contract> Value)

This will ignore the Contract dimension.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

7 Replies
MK_QSL
MVP
MVP

Provide more information please ... Your description is not giving proper idea what exactly you want !

sunny_talwar

You want to see Values in just one of those rows?

Try this:

Aggr(TestExpression, Client)

sculptorlv
Creator III
Creator III
Author

I use this AGGR, but ...

If I have dimension Contract, it calculates based on Client AND on Contract - as the result different result

I need to get calculation based only on Client dimension (like on right picture), but I need to show dimension Contract in this table ... so for each contract should be taken calculation based on other dimension - Client (not Contract)

gsbeaton
Creator II
Creator II

Hi Ruslans,

Yes, it is possible to avoid the 'chosen dimension' using set analysis.  You would just have to so something like this

  Count({$<[ChosenDimension]=>} [Contract Number])

By using the '=' without a search parameter, you cancel that selection.

Hope that helps.  If not, please post more details on your problem.

Cheers

George

sunny_talwar

I think, like Manish mentioned, it would be easier to understand your issue if you are able to share a sample.

jonathandienst
Partner - Champion III
Partner - Champion III

I think this is what you are after - use a qualified TOTAL, like

     Sum(TOTAL <Contract> Value)

This will ignore the Contract dimension.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sculptorlv
Creator III
Creator III
Author

I think it is exactly what i wanted.

Thank you ... will test now.

Later..

This really works. My code is:

SUM(

TOTAL <Sales_Agent_Name> (

(if(Sale_Category = 5.2, Sale_Money, 0))))