Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Trouble with IIF statement in SSRS report builder

$
0
0

hi....

I have an expression field that isn't working.  They are Dynamics GP tables, and I am trying to show converted currencies:

=IIF (Fields!Currency.Value=RTrim("Z-US$"), Fields!ORCPTCOST.Value, Fields!ORCPTCOST.Value / CDEC(Fields!ExchangeRate.Value))

The true part is bolded.  when the report shows, it always comes up as #Error. If the currency is  "Z-MXN$", it calculates it fine. 

So why is my true part not working?

thanks!


~george


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>