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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
sdavinblanc
Contributor III
Contributor III

How to pick up a dimension from a table's colum to create a calculated expression in another column

I have one table in my sheet with three column :

- Column A is a dimension from my table_A : Analyse_Period (format YYYYMM)

- Column B is a measure from my table_A :  Amount_A

I would like to create a Column C which is a calculated expression like this : =[Amount ] / [X]

 [X] is an amount_B from table_B i would like to pick up using the period from my column A.

My expression could be : = Sum({<Period={Analyse_Period )}>}[Amount_B).

I know i can do it directly from the load script but i would like to know if it"s possible to do it directly in my visualisation ?

Thank you for your help

Labels (4)
3 Replies
Chanty4u
MVP
MVP

Try this 

Sum(Amount_A)

/

Sum(

    {<Period = {"=$(=Only(Analyse_Period))"}>}

    Amount

_B

)

sdavinblanc
Contributor III
Contributor III
Author

It doesn't work

There is no error detected in the definition of the expression but there is no result in my column.

marcus_sommer

If the relationship between the tables covers your requirements it should be possible to calculate such things within the UI whereby I assume that something will be probably more suitable:

if(Analyse_Period = Period, sum(Amount_B))