Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to write a set analysis expression that analyzes whether the NTNAME given is = to the OSUser(). It doesn't work - just keeps giving the total amount for every line whether the NTNAME = OSUser() or not.
sum ({$<NTNAME=OSUser()>} AMT)
Steve
Try to write like
=Sum ({<NTNAME={ '$(=OSUser())' }>} AMT)
Or
=Sum ({$<NTNAME={ '$(=OSUser())' }>} AMT)
Or
=Sum ({$<NTNAME={ "$(=OSUser())" }>} AMT)
Or
=Sum ({$<NTNAME={ "$(=OSUser())" }>} AMT)
Steve,
try:
sum ({$<NTNAME={"=OSUser()"}>} AMT)
or
sum ({$<NTNAME={'$(=OSUser())'}>} AMT)
Try to write like
=Sum ({<NTNAME={ '$(=OSUser())' }>} AMT)
Or
=Sum ({$<NTNAME={ '$(=OSUser())' }>} AMT)
Or
=Sum ({$<NTNAME={ "$(=OSUser())" }>} AMT)
Or
=Sum ({$<NTNAME={ "$(=OSUser())" }>} AMT)
What happens if you put =OSuser() in a text box?
may be
youcan use below
sum ({$<NTNAME={$(=Upper(OSUser()))>} AMT)
hope this helps
=sum({$ <NT_NAME={"$(=OSUser())"}>} AMT)
check the domain is present in NT_NAME and OSUser()
or
not present in NT_NAME and not present in OSUser()
Hey,
Take into account that NTNAME is a reserved field name for section access and not visible from the model. If you want to compare current user returned by OSUser() with any other field that stores the user, make sure you are loading them in a field named different to NTNAME, otherwise, it will not work.
Miguel