Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:31:50+00:00 2026-05-15T12:31:50+00:00

I am using Visual Studio to create a Report. I am having a problem

  • 0

I am using Visual Studio to create a Report. I am having a problem getting the appropriate value into a text field.

I have a DataSet with these values:
InfoPathFormsWorkflow
AvgProcessTime_Sum
AvgProcessTime_Count

This DataSet will only have 1 or 2 values in it. It is being populated by an InfoPath form (the values in the DataSet are all accurate and working).

InfoPathFormsWorkflow is either “Close” or “Open”. I currently have 2 text fields with these expressions:

=IIF(Fields!InfoPathFormsWorkflow.Value = "Closed",Fields!AvgProcessTime_Sum.Value / Fields!AvgProcessTime_Count.Value,"No Value")

=IIF(Fields!InfoPathFormsWorkflow.Value = "Open",Fields!AvgProcessTime_Sum.Value / Fields!AvgProcessTime_Count.Value,"No Value")

When the DataSet only has 1 value (either with “Open” or “Close”) that text field will display correctly, but when the DataSet has 2 values (both “Close” and “Open” entries) then only the fist one will display correctly and the second one will display “No Value”. So if the first row has InfoPathFormsWorkflow.value = “Close” then it will work but the “Open” will not. Or visa versa.

Is there a trick to selecting the right row entry? I have read a bit about using Parameters, but I cant seem to understand how that works. Any help would be great! This got handed to me after another worker here spend 80 hours on it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:31:51+00:00Added an answer on May 15, 2026 at 12:31 pm

    These are TextFields inside or outside your Tablix?

    If they’re outside, which I think seems to be the case (although I feel like that expression shouldn’t be working at all then, so maybe I’m wrong…), this gets a little unwieldy, but is still entirely possible (assuming you only have those two rows):

    For the Closed TextField:

    =IIF(First(Fields!InfoPathFormsWorkflow.Value, "YourDataSetName") = "Closed", 
         First(Fields!AvgProcessTime_Sum.Value, "YourDataSetName") / 
           First(Fields!AvgProcessTime_Count.Value, "YourDataSetName"),
         IIF(Last(Fields!InfoPathFormsWorkflow.Value, "YourDataSetName") = "Closed",
             Last(Fields!AvgProcessTime_Sum.Value, "YourDataSetName") /
               Last(Fields!AvgProcessTime_Count.Value, "YourDataSetName")
             "No Value"
         )
    )
    

    Likewise for the Open TextField:

    =IIF(First(Fields!InfoPathFormsWorkflow.Value, "YourDataSetName") = "Open", 
         First(Fields!AvgProcessTime_Sum.Value, "YourDataSetName") / 
           First(Fields!AvgProcessTime_Count.Value, "YourDataSetName"),
         IIF(Last(Fields!InfoPathFormsWorkflow.Value, "YourDataSetName") = "Open",
             Last(Fields!AvgProcessTime_Sum.Value, "YourDataSetName") /
               Last(Fields!AvgProcessTime_Count.Value, "YourDataSetName")
             "No Value"
         )
    )
    

    If you wanted something different, let me know. Report Services is a bit stubborn about making things easy sometimes, but most things can eventually be made to behave as anticipated with the right (lengthy) expression.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 436k
  • Answers 436k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your service is written in .NET you can use… May 15, 2026 at 3:53 pm
  • Editorial Team
    Editorial Team added an answer As Hans Passant suggested (though unfortunately he has now deleted… May 15, 2026 at 3:53 pm
  • Editorial Team
    Editorial Team added an answer Drush is not a module that you install like all… May 15, 2026 at 3:53 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.