Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using this formula to calculate a sum.
The formula only works when I make a selection.
I would like the formula to also show overall sum value if no selection is made.
IF(not Match(Trim(ListItemsFromID_Project),'Heathrow AMP', 'Please select'),sum(master_FPR),Null())
Any ideas, help!
Thanks a million!
See if this works for you
IF((ListItemsFromID_Project = 'heathrow AMP'),
'-',
Sum({1}{< ListItemsFromID_Project -= 'heathrow AMP' >} master_FPR)
)
OR MORE SIMPLE:
IF((ListItemsFromID_Project = 'heathrow AMP'),
'-',
Sum(master_FPR)
)
The error it's in the end was Num, please see the things i am testing with my fields and values, and next switch to your, is possible to escape something, but if you just copy and past and don't analyze is difficult
IF((ListItemsFromID_Project= 'Victoria Phase 4' or ListItemsFromID_Project = 'Victoria Phase 5'),
'-',
Sum({< ListItemsFromID_Project -= {'Victoria Phase 4','Victoria Phase 5'} >} master_FPR)
)
Hi JoseGarcia
When you don't identifier atomically assumes {$} which means only do what is in the selection.
Try put {1} which means all of your pretended field, and ignore the selections,
Try this:
IF(not Match(Trim(ListItemsFromID_Project),'Heathrow AMP', 'Please select'),sum({1}master_FPR))
Say some feed back if you can or not.
Hi there,
it did not work.
it is only summing when a selection is made.
Your code below just work with selections.
IF(not Match(Trim(ListItemsFromID_Project),'Heathrow AMP', 'Please select')
To do what you want you just need this:
sum({1}master_FPR))
And this will solve your problem
yes that is correct. but i need to exclude heathrow AMP from my dimension.
Try this
Sum({1}{< ListItemsFromID_Project -= 'heathrow AMP' >} master_FPR)
nearly there 🙂
The sum with no selection is made is working. However when I select heathrow amp, this should not show any values, it does show. just need to exclude heathrow amp from the dimension 🙂
See if this works for you
IF((ListItemsFromID_Project = 'heathrow AMP'),
'-',
Sum({1}{< ListItemsFromID_Project -= 'heathrow AMP' >} master_FPR)
)
OR MORE SIMPLE:
IF((ListItemsFromID_Project = 'heathrow AMP'),
'-',
Sum(master_FPR)
)
no Luck, Heathrow AMP value still showing when selected 😞
100% sure it is:
This what you want to not show ? ListItemsFromID_Project = 'heathrow AMP'