SSRS - Display field value based on user

  • Hello,

    WHile using SSRS, I only want to display a fields data value if the user is a specific person, otherwise I want to set the field value in the Tablix to "0'.  I believe  the following  expression would be correct but isgenerating an error message.  Can someone provide some insight?  Many Thanks in advance!

    =SWITCH(User!UserID = "DOMAIN\username",Fields!SalesTotal.Value,"0")

    • This topic was modified 5 years, 6 months ago by  rjjh78.
    • This topic was modified 5 years, 6 months ago by  rjjh78.
  • =IIf(User!UserID.Value = "DOMAIN\username", Fields!SalesTotal.Value, "0")

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply