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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distribute computed expression value into next columns of expressions on Pivot or Straight table!

Hi Qlikers,

I have a scenario where once a value is calculated on pivot or straight table, then the generated computed value has to be distributed randomly across next few columns.

e.g.: Year = 2001 .. Sum of Sales = 2000 (i.e. expression Column 1) .. then next 3-4 expression columns will have 2000 divided randomly across them.

So Expression Column 2 = 1000, Expression Column 3 = 400 & Expression Column 4 = 600.

Year = 2002 .. Sum of Sales = 1000 (i.e. expression Column 1) .. then next 3-4 expression columns will have 1000 divided randomly across them.

So Expression Column 2 = 600, Expression Column 3 = 300 & Expression Column 4 = 100.


Example given below on what I need.

YearExpression 1 (Sum of Sales)Expression 2Expression 3Expression 4
200110006004001000
20021200100700400
2003110010005050
200420001200600400



If any such expression is possible, then do share and it will be of great help.


Thank you!


Regards,

Shri

0 Replies