Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
=if(m3_tot_engasjem>=tot_engasjem,sum(m3_tot_engasjem/tot_engasjem)
I want to give a percentage increase for those that have increased their sum, omitting those that have decreased their amount.
Data is like:
tot_engasjem | m3_tot_engasjem |
1959998.0 | 1988297.0433477424 |
24027.0 | 27675.626156287075 |
159082.0 | 133511.56486189537 |
2044.0 | 1722.672091871297 |
54219.0 | 54711.763840512234 |
550000.0 | 410286.25930142036 |
1070062.0 | 865880.910229268 |
125000.0 | 127502.63405138304 |
490062.0 | 498072.2405880773 |
4331.0 | 3988.525178964708 |
28214.0 | 23919.60232069539 |
133568.0 | 126660.41474844047 |
389661.0 | 342787.3709764202 |
450000.0 | 388604.4426733665 |
607711.0 | 581597.413582825 |
51406.0 | 48206.72875358108 |
18501.0 | 16486.762579572922 |
21219.0 | 17759.202986170505 |
253211.0 | 253733.05072192842 |
963095.0 | 936906.0609524274 |
1239794.0 | 1307198.2491753774 |
131839.0 | 96661.59870819317 |
407503.0 | 446913.1083573017 |
Hi
Try
Avg($(vTot)) Or Avg($(=$(vTot)))
Hope that helps
Jonathan
What is your question? Does your expression not work?
Maybe you could try if(sum(m3_tot_engasjem)>=sum(tot_engasjem),sum(m3_tot_engasjem)/sum(tot_engasjem))
Hi kiteulfen99,
I guess your expression is correct. All you need to remove is the sum
=if(m3_tot_engasjem>=tot_engasjem,(m3_tot_engasjem/tot_engasjem))
Beacuse may be you dont wish to take the sum aggregrate of it.
This may work for you or you can even use frankcrezee expression and convert the format with number and Show in %
I am still having problems with this:
SET vTot = if (m3_tot_engasjem>=tot_engasjem,(m3_tot_engasjem)/(tot_engasjem)-1);
When I am using this variable later on with an avg(vTot) it renders just blanks over the dimensions.
Kiteulfen 99
Hi
Try
Avg($(vTot)) Or Avg($(=$(vTot)))
Hope that helps
Jonathan