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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Manni_SM
Creator II
Creator II

Script Measur

Hi @rubenmarin  i have measure calculated  in script 

 

sum(cash)   as  cash

now i want to use direct cash field in pivot table  .  its giving me null values.

i tried using

max(cash)

first(Cash)

sum(Cash)

count(cash)

 

nothing worked any other alternate for this? 

5 Replies
rubenmarin
MVP
MVP

Hi, the null values could be caused by something in the data model, by the relations between 'cash' and the dimensions.

You can try a copy of the pivot table and transform to simple adding cash as dimension, and confirm that all (or at least some of the rows) have data in all dimensions.

 

Manni_SM
Creator II
Creator II
Author

Hi @rubenmarin  yes i have values 

Manni_SM_0-1780655101596.png

 

rubenmarin
MVP
MVP

I can olnly see a dimension there (besides the cash), if it's a pivot I think there would be at least one additional dimension.

Also keep the measure Sum(cash) to confirm if it sums by row and in the totals or not.

vighnesh_gawad
Partner - Creator II
Partner - Creator II

in pivot table, which dimensions and measures you are using? 

Regards, Vighnesh Gawad
Connect with me on LinkedIn | GitHub
Manni_SM
Creator II
Creator II
Author

Hi @VIG ,

Dim:  Month:   Feb  

year : 2026

Application :  HDD

 

Measure: 

Cash1 

Cash2 

Cash3 

Cash 3

Cash 4

Total  ( cash1+cash2+cash3+cash4)

ctr   ( count of ctr)

----------------

Note:  Cash 1 to cash 4 are direct measures calculated in script 

total is   sum of cash 1 to cash 4

ctr   is  count of ctr