Sum on filtered repeating data - InfoPath Dev
in

InfoPath Dev

Sum on filtered repeating data

Last post 04-05-2017 05:27 AM by K5Optima. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 04-04-2017 11:36 AM

    Sum on filtered repeating data

    Hello I have a repeating table that is a secondary data source. That retrieves all data on open and I filter it using two dates. Then I have a second repeating table that I am using the insert command and I am performing calculations and I am filtering the repeating table the same way between the two dates. The problem I am having is my sum is being skewed by all the data vs what's only shown. I am trying to filter sum but everything I am trying is not working. I want to use something like this sum(EstPS[Title = VendorPS]) but I need current or I tried filtering like this sum(EstPS[msxsl:string-compare(NextDueDataPS, Date1) 0]) still doesn't work. any suggestions?
  • 04-04-2017 02:30 PM In reply to

    Re: Sum on filtered repeating data

    If you are using the Insert command from qRules - you could just copy in the rows that meet your date range.... does that solve the issue? As to your filtering - can you click the checkbox in the formula editor for sum(EstPS[Title = VendorPS]) and paste the full XPath in a reply? Oh & let me know where in the schema that formula is being used? Like - is it a calculated value in a repeating table? Or something else? :)
    Hilary Stoupa

  • 04-04-2017 02:38 PM In reply to

    Re: Sum on filtered repeating data

    I like that method of only inserting the filtered rows. Can you help with how to do that?
  • 04-04-2017 02:43 PM In reply to

    Re: Sum on filtered repeating data

    Sure - so you are using the Insert command from qRules, then rules to populate your data? Or is this custom code?
    Hilary Stoupa

  • 04-04-2017 02:56 PM In reply to

    Re: Sum on filtered repeating data

    Sorry, I am using qRules. I will attach a sample of the form to help you with that I am doing.
  • 04-04-2017 02:58 PM In reply to

    Re: Sum on filtered repeating data

    Cool - yah, I can def. give you a hand with this. :)
    Hilary Stoupa

  • 04-05-2017 05:27 AM In reply to

    Re: Sum on filtered repeating data

    Hi Hilary, please check your email.
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.