Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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))

5 Replies
swuehl
MVP
MVP

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
MVP
MVP

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