Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firmual to show figure if in sub group

Status
Not open for further replies.

Cpreston

MIS
Mar 4, 2015
972
GB
Hi

We have a report that shows total volumes of products by sales rep and the Product group.

All furlmul's are set like the below

if {vwSalesOrderRepSummary_NoFilter.ParentID} = 2000
then {vwSalesOrderRepSummary_NoFilter.TotalVolume} else 0

This works fine, however, I have been asked to also display if the figures have a sub group of a certain type, one is 2070 and the other 2037. I tried adding the code as below and calling it test and adding it into the report but it just gives me 0.00 in the results. If I make the report look at a certain order number which I know as the productgroupid, it shows the right figure. So how do I get it to show the results when it runs for all orders. Any ideas please. Thanks in advance

if {vwSalesOrderRepSummary_NoFilter.ParentID} = 2000
And {vwSalesOrderRepSummary_NoFilter.ProductGroupID} = 2070
then {vwSalesOrderRepSummary_NoFilter.TotalVolume} else 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top