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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using dimension values in set analysis

Hi,

I have a static straight table that I would like to use the values from a dimension in my set analysis.  The dimension that I would like to use in this example is [Year].  Is it possible for set analysis to work in this case?

Example:  =SUM( {$<[Finance Year] = {'[Year]'} >} [Revenue])

Where: [Year] is directly from the master calendar, and [Finance Year] & [Revenue] are column names for another table.

Please note: I want to avoid setting [Finance Year] as a dimension.

4 Replies
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Hi,

Dont know if i understood your problem correctly..

See if this helps.

1.) create a variable    vYear = Concat(Year,',')

2.) use this variable in your expression.     =SUM( {$<[Finance Year] = {'$(Year)'} >} [Revenue])  

Regards,

Phani

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Try with this.

     Sum(Aggr(If(Year=[Financial Year],Sum(Revenue)),[Financial Year]))

Celambarasan

Not applicable
Author

Hi Sean,

I am not sure if I understand you clearly. But it sounds to me like you using expressions to obtain the columns [Financial Year] and [Revenue] in that other table. If that's the case why don't you to set them as variables?

Say:

vFinancialYear='Expression used in the other table' and

vRevenue= 'Expression used in the other table'.

You may them try to use  something like:

SUM({$<Year={"$(vFinancialYear)"}>} $(vRevenue))  ?

Not applicable
Author

Hi Sean,

I have the same question, did you find a solution yet?

Thanks! Wouter