Solved

Repeating Values from shared Variable

Posted on 2014-09-26
1
163 Views
Last Modified: 2014-09-26
I have a subreport with the following formula in the GH... This subreport is placed in the GH1a of the Main Report


//@SharedSummary
WhilePrintingRecords;
Shared Numbervar SumValue:=Sum ({Command.ChequeValue}, {Command.ChequeDate}, "daily");
Shared DateTimeVar TranDate:={Command.ChequeDate};

This formula is placed in the GH1b of the Main Report .. The problem is that the values are repeating till the next non 0 value....I need this value to show as well

//@SharedSumValue
WhilePrintingRecords;
Shared Numbervar SumValue;
Shared DateTimeVar TranDate;
Global NumberVar SumVal_Summary;
SumVal_Summary:=SumVal_Summary+ If {ArInvoicePay.JournalDate} = TranDate then SumValue else 0;
SumValue;

This formula is placed at the Report Footer of the Main Report.. Which appears correct...

//@Display
WhilePrintingRecords;
Global NumberVar SumVal_Summary;
SumVal_Summary

The only problem is that the Value at the GH1b within the Main Report is repeating Values until the next non Zero appears, and then that value repeats...I only want the value in GH1b to show if the Dates match between the subreport and main report, I also need the @Display formula to show a summary of the values from the GH1b formula

Hopefully this makes sense
0
Comment
Question by:Mikeyman_01
1 Comment
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40346255
I think I understand what you want.

Try this formula

//@SharedSumValue
 WhilePrintingRecords;
 Shared Numbervar SumValue;
 Shared DateTimeVar TranDate;
 Global NumberVar SumVal_Summary;
 If {ArInvoicePay.JournalDate} = TranDate then 
 (
 SumVal_Summary:=SumVal_Summary+ SumValue ;
 SumValue;
)

Open in new window


I that doesn't do what you want can you show in a picture what you want.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question