?
Solved

Repeating Values from shared Variable

Posted on 2014-09-26
1
Medium Priority
?
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

800 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