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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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? 

6 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 vighneshgawad.com | 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

rubenmarin
MVP
MVP

Hi, if you have all those dimensions and measures the previous test I suggested was incomplete.- I asked to do a copy of the pivot table and convert it to a simple table (just drag the chart on this copy and convert to the new chart