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: 
fmazzarelli
Partner - Creator III
Partner - Creator III

expression

hi,

a simple question (I hope)

Using expression, is it posible divide a value?

How to do it?

Example

field: invoice_number

files: total_value

new fields: Total_value / (count(invoice_number))

Labels (1)
5 Replies
swuehl
Champion III
Champion III

In general, you shold use aggregation functions around every field in an expression.

Maybe like

=SUM(Total_value) / COUNT(invoice_number)

PabloOrtiz
Partner - Creator
Partner - Creator

!Hello Fabio, attached an simple example, maybe you help

fmazzarelli
Partner - Creator III
Partner - Creator III
Author

Immagine.png

hi, your suggest is fine.

but if i create a chart (digital display), I obtain this result?

What is it wrong?

swuehl
Champion III
Champion III

The expression itself is working e.g. in a text box?

Can you upload a small QVW sample file?

fmazzarelli
Partner - Creator III
Partner - Creator III
Author

thanks for your suggest.

It's works