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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

divide column values not working in straight table? please help

Hi,

when I am dividing column values in straight table it is showing blanks

I have below data in straight table

         

IDnamesourcemonthsdatesalesdivide
52524546xxgoods6014/04/201535634-

dimensions: ID,name,source

expressions: months,date,sales,divide

I need divide column as calculated one as below

so, I have used divide = Column(3)/Column(1). this is not working.

how to get this correctly?

Thanks.

6 Replies
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

as far as I know this should work like you described.

Can you upload an example .qvw?

Digvijay_Singh

See attached, but not sure the business case as aggregation logic cannot be understand from one row.

sujeetsingh
Master III
Master III

Try using expressions

krishna20
Specialist II
Specialist II

Hi,

Check whether the column no's are given correctly or not.

-> Try with Expression Label names to achieve division.

-> Try using direct expressions.

Not applicable
Author

Thanks. I tried this. not working. I have used in script as below

sales/months

this worked.


sasiparupudi1
Master III
Master III

may be you have a divide/0 issue? try if (column(1)>0,column(3)/Column(1),0)