Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I accomplish Field data content Expansion

Hi All,

I ll like to be able to do set analysis expresions based on the content of a field in a specific table. Pls see the example below:

Table

DescriptionFormula
Sales Turnover10101, 10102, 10107
Admin Expenses51010, 51023

The above table shows a template for calculating sales & admin expenses. Its simply by summing all amount in the transaction file (not shown) where AccountNo is equal to each of the accounts specified in the formular above.

How do I write an expression to accomplish this?

This is the code I could come up with, but its not working.

= Sum({$<GLActNo={$(formular)}>} Amount)

Thanks in advance.

Femi

7 Replies
Not applicable
Author

could you send sample file?

i'm not sure what is your data structure

Not applicable
Author

Thanks Pari,

Pls find attached d qv app.

What I m trying to achive is use the formular column in the Excel table to calculate the balances for each item in the straight/pivot table chart.

I m grateful to your anticipated assistance

Femi

Not applicable
Author

check this:

Sum({$<GLActNo={"$(=min(Formular))"}>} Amount)

but first of all fill all the values in excell becouse neither 10101001 nor 10101002 nor 10101005 dont have values and i could not check if my expression is correct

PS it is important if you write formular or Formular

whiteline
Master II
Master II

Hi.

I guess you can't do it that way, becasue set expression is calculated once for the whole chart and then the expression is calculated over that set according to dimensions.

Not applicable
Author

Hi,

I ve tried the example above but its not working. I attach a clearer app so u can understand my goal.

My goal is to calculate the values of each row based on the account nos on the Formular column per row.

Thanks in advance

Femi

Not applicable
Author

Hi

I am grateful for any insight you may give in achieving my goal.

Pls see my reply to Pari above

Thanks in advance

Femi

whiteline
Master II
Master II

Hi.

Why don't you just map the codes to the expences description?

Description           Formula

Sales Turnover      10101

Sales Turnover      10107

Sales Turnover      10102

Admin Expenses    51010

Admin Expenses    51023

And then just use Sum().