title: Trying to use Switch statement in SSRS
body: <pre><code>=Switch(Fields!CompnyID.Value=5, "company 1" "dsSalesManagement", Fields!CompnyID.Value=6, "company 2" "dsSalesManagement" )
  </code></pre>
  
  <p>Trying to use switch statement to display two different results in my report.
  Was maybe looking for syntax correction or is there a way to use an else if statement? Problem is I want this expression to be dependent on value from another expression. Is that possible in ssrs?
   <img src="https://i.stack.imgur.com/4mjfq.png" alt="ErrorList"></p>