Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Can't work out the difference between 2 values.

$
0
0

Hi,

I'm using SQL Server Data Tools to create fetch based reports for my CRM online installation.

In my data query I pull 2 fields that contain values in currency (linetotal and grandtotal).

I'm trying to create an expression against a table column inside my report that simply subtracts the linetotal value from the grandtotal value so I can work out what the discount value is as I sometimes apply a % discount to the linetotal value which is then reflected in the grandtotal value.

I'm using the below code but receive "Error" when I run my report.

=Sum(Fields!grandtotal.Value - Fields!linetotal.Value)

Any help would be appreciated, I'm not that good with SQL!

Many Thanks,


James Bratley


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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