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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
fftec_fftec
Partner - Contributor II
Partner - Contributor II

Values change when you select the product

Hello people,

I have a table in QlikView with the dimension Product and the expression stock.

when selecting any product the stock value changes.

I will list the example here

== Expression I'm using ==

IF(PRODUTO.B1_PRV1 = 0,

sum(PRODUTO.QATU_REAL * (PRODUTO.B1_UPRCDOL * vFator )) ,

sum(PRODUTO.QATU_REAL * (PRODUTO.B1_PRV1 * ((100 - vDescontoMedioTipo)/100 )))
)

 

Before selecting the product

fftec_fftec_0-1591879419695.png

 

After selecting the product

fftec_fftec_1-1591879419699.png

 

Labels (3)
1 Solution

Accepted Solutions
fftec_fftec
Partner - Contributor II
Partner - Contributor II
Author

The problem was in the variable vFator.
Thank you!

View solution in original post

3 Replies
agigliotti

maybe this:

=sum(
if( PRODUTO.B1_PRV1 = 0, ( PRODUTO.QATU_REAL * (PRODUTO.B1_UPRCDOL * vFator ) ),
( PRODUTO.QATU_REAL * (PRODUTO.B1_PRV1 * ((100 - vDescontoMedioTipo)/100 )) )
)
)

I hope it can helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
fftec_fftec
Partner - Contributor II
Partner - Contributor II
Author

Unfortunately it didn't. Do you have any other tips to help me?

fftec_fftec
Partner - Contributor II
Partner - Contributor II
Author

The problem was in the variable vFator.
Thank you!