Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello i have a problem with my expression "if or if" maybe you can help me :
i try to calculate an expression with this :
if([Site Facture]= 'PX', (CMSPSX*Qte), [Site Facture]) or if([Site Facture]= 'FV', (CMSFV*Qte), [Site Facture])
but my results is "-1" and i don't know why.
Maybe you can help me ?
I have join an exemple of my problem
Best regards
i have solve my problem with this expression :
If( Site_Facture = 'PX',
sum(CMS*(Qté_Facturé*Coef_UV_US)),
if( Site_Facture = 'FV',
sum(CMSFV*(Qté_Facturé*Coef_UV_US))
))
The problem was the labels, don't working on my function. I have use the full operation.
May be this?
if(Match([Site Facture], 'PX', 'FV'), (CMSPSX*Qte), [Site Facture])
Use :
Rangesum(if([Site Facture]= 'PX', (CMSPSX*Qte), [Site Facture]), if([Site Facture]= 'FV', (CMSFV*Qte), [Site Facture]))
i have solve my problem with this expression :
If( Site_Facture = 'PX',
sum(CMS*(Qté_Facturé*Coef_UV_US)),
if( Site_Facture = 'FV',
sum(CMSFV*(Qté_Facturé*Coef_UV_US))
))
The problem was the labels, don't working on my function. I have use the full operation.
or simply :
Rangesum((CMSPSX*Qte), (CMSFV*Qte))
Rangesum manage null value
Or better:
Rangesum(CMSPSX, CMSFV) * Qte