To comapre a single date with multiple dates

Hi All,
I am using fetch xml report in which there are two table Opportunity and activity
One Opportunity with have multiple activity
Opportunity has a field  called new_dateofapplication
and Activity has a field called StartDateActivity which have multiple values
i need to compare these dates somehow as below  but it didnt work
=iif((Fields!new_dateofapplicationValue.Value)<=(Fields!StartDateActivityValue.Value),sum(Fields!ActivityDurationValue.Value),0)
for e.g
Any help much appreciated
Thanks
Pradnya07

Hi Simran08,
According to your description, you have two tables in your report. Now you want to compare the date in Opportunity table with the date in Activity table, sum all activity hours which their date are later than the start date. Right?
In Reporting Service, if you want to compare two values in IIF() function without using Lookup/LookupSet, these two data fields need to be in same scope. Your date are from different tables. It seems you have different datasets for those tables. This may
be the reason why you can’t make your expression working in your report. And for comparing data from different datasets, we only have Lookup/LookupSet function. However, this function is only working in conditions where the value of one field is equals to
the value of the other field. So we can never use this function to judge if the value of one field is greater/less than the value of the other field. So in your scenario, it’s impossible to find a solution if your Activity table only has those two columns.
Also if you get the total hours in that way (like you post in your picture), you can’t figure out how many hours in total hours are spent on each program. But I guess it supposed to have some fields in your Activity to show clients and program. If so, you
just need to set groups in your table and get total in group footer. It will looks like below:
If possible could you post the dataset and table structure or any other detail information about your report? That can help us tested your case in our local environment and do further analysis. Thank you.
Reference:
LookupSet Function (Report Builder and SSRS)
Best Regards,
Simon Hou
 

Similar Messages

  • Will there performance improvement over separate tables vs single table with multiple partitions?

    Will there performance improvement over separate tables vs single table with multiple partitions? Is advisable to have separate tables than having a single big table with partitions? Can we expect same performance having single big table with partitions? What is the recommendation approach in HANA?

    Suren,
    first off a friendly reminder: SCN is a public forum and for you as an SAP employee there are multiple internal forums/communities/JAM groups available. You may want to consider this.
    Concerning your question:
    You didn't tell us what you want to do with your table or your set of tables.
    As tables are not only storage units but usually bear semantics - read: if data is stored in one table it means something else than the same data in a different table - partitioned tables cannot simply be substituted by multiple tables.
    Looked at it on a storage technology level, table partitions are practically the same as tables. Each partition has got its own delta store & can be loaded and displaced to/from memory independent from the others.
    Generally speaking there shouldn't be too many performance differences between a partitioned table and multiple tables.
    However, when dealing with partitioned tables, the additional step of determining the partition to work on is always required. If computing the result of the partitioning function takes a major share in your total runtime (which is unlikely) then partitioned tables could have a negative performance impact.
    Having said this: as with all performance related questions, to get a conclusive answer you need to measure the times required for both alternatives.
    - Lars

  • Sharing iTunes on a single computer with multiple users

    Greetings,
    I have been troubleshooting a problem sharing iTunes on a single computer with multiple users that cropped up a few weeks ago and have not had very good luck.
    Several months ago I successfully set up my wife’s G4 Laptop (PowerPC processor) so that we could share iTunes on that computer. I had just gotten her an “My Book” external hard drive (Western Digital). The iTunes Library will go on this new unit because the internal drive was running out of room. I successfully set the privileges, moved the entire library onto a “Share” directory and everything worked fine.
    In this way, when I got a new CD I could add it to iTunes (under my login, administrator privileges) and she could access it (under her login) to listen to while working on the computer or using her iPod. This arrangement went well for quite awhile.
    About a month and a half ago, when I tried to launch iTunes from my login I received this message:
    “The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file.”
    I think the permissions must have changed when there was an update because my wife is pretty careful about what she does on her computer. Updates were the only thing I could think of that had changed since I had set her computer up. I also noticed that some of the iTunes defaults were different from the last time I had used it to add a CD.
    So, I did some reading and went back through the motions of trying to set it up again. I re-formatted the My Book hard drive to Mac OS Extended (Journaled) added the files back to the external, reset permissions on the external hard drive. (Owners: System, Access: read and write - Group: wheel, Access: read and write – Others: read and write).
    When I now launch iTunes under my login I get this message:
    “The operation cannot be completed because you do not have sufficient privileges for some of the items.”
    What gives? I am the original owner and have always had top-level privileges.
    Can someone point me to any articles or clues as to how I need to set-up iTunes on a single computer to be shared by more than one user? Also, I am considering upgrading to the newer system in a few weeks, so if a solution for OS X 10.5 is available, that would work too.
    Tim

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • HT2688 Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared librar

    Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared library?

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • How to compare single value with multiple values

    In my query I have something like this:
    A.SOR_CD=B.SOR_CODE where A and B are 2 different tables. This condition is in the where clause. The column in table A has single values but some values in table B have multiple comma separated values (822, 869, 811, ..).  I want to match this single
    value on the left side with each of the comma separated values. Please let me know how will I be able to do it. The number of comma separated values on the right side may vary.

    Hi MadRad123,
    According to your description, you want to compare single value with multiple values in your query. Right?
    In this scenario, the table B has comma separated values, however those comma separated values are concatenated into a string. So we can use charindex() function to return the index of the table A value. And use this index as condition in
    your where clause. See the sample below:
    CREATE TABLE #temp1(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp1 VALUES
    ('1','A'),
    ('2','A'),
    ('3','A'),
    ('4','A'),
    ('5','A')
    CREATE TABLE #temp2(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp2 VALUES
    ('1','a,A'),
    ('2','A,B'),
    ('3','c'),
    ('4','A,C'),
    ('5','d')
    select * from #temp1 a inner join #temp2 b on a.ID=b.ID
    where CHARINDEX(a.Name,b.Name)>0
    The result looks like below:
    Reference:
    CHARINDEX (Transact-SQL)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Restricting single PO with multiple plant

    Experts,
    Pl help me in restricting user from creating single PO with multiple plant. Is there any config available??? 
    I dnt want to go for any ABAP development.
    Thanks in Advance,
    Parag Mahajan

    Dear Parag,
    Querry :  Restricting a single P.O. with multiple plants:
    If you want to restrict a single Purchase order with multiple plants the reason may be that;
    Suppose your ordering material A for which you have three vendors in you SAP. But you are requiring this material in all your plants say example three plants.
    You can create Purchase order for same with vendor but due the huge requirement your vendor get overloaded.And your other capable vendors are not used at all.
    You can try out with quota arrangement for all vendors with which the quantity will be allocated to all the vendors depending on the quota rating.
    Also you can define lot sizing procedure for a your vendor in customizing and can avoid creating Purcahse order with multiple plants.
    Thanks ,
    Tushar Patankar

  • Vendor master data - Single material with multiple price

    Hi Gurus,
    Per our set-up, we have 1 purchasing organization to handle the central procurement function for purchases to various countries/destination.  As such, whenever we seek for quotation from a single vendor, the vendor will provide their price for a single/same material, e.g. ABC, with various price by locations. for example:
    1. Material: ABC
    - Price: $83 (EXW)
    - Price: $85 (FOB, Tianjin)
    - Price: $100 (CFR Port Klang)
    - Price: $120 (CFR Mumbai)
    - Price: $160 (CFR Jabel Ali)
    Is there a way I can use any of the vendor master records (e.g. outline agreement / info records) to capture a single material having multiple price?  At the same time, this infomation is available during our PO creation (e.g. via ME57).
    Thanks in advance.

    Dear
    For Condition Type PB00, SAP has some standard requirements in Pricing Schema.For one material different location one requirement is there.But as per your requirements you need to put logic through ABAP and it will definetely work.The exact requiremnt i'm not remembering.
    Just go through all the requiremnt and respect to PB00, put the requiremnt and put the logic.
    Revert me for the result.
    Thanks & Regards
    PKB

  • Single report with multiple queries OR multiple reports with single query

    Hello Experts,
    I have a confusion regarding Live Office connection for many days. I asked many people but did not get a concrete answer. I am re-posting this question here and expecting an answer this time.
    The product versions that I am using are as follows:
    FrontEnd:
      BOE XI 3.1 SP4 FP 4.1
      Xcelsius Enterprise 2008 SP4
    Backend:
      SAP BW 7.0 EHP1
    I have created a dashboard which is getting data from a webi report using LO connections.
    The webi report has five report parts which are populated by five different queries.
    Now my question is, when the five LO connections are refreshed, is the webi report refreshed five times or just once?
    If the report is refreshed five times, then I guess it is better to have five different webi reports containing single report part, because in that way we can prevent same query being executed multiple times.
    SO what is the best practice- to have a single report having multiple queries - OR - to create multiple webi reports with single query?
    Thanks and Regards,
    PASG

    HI
    I think Best Practice is Multiple reports with single query
    Any way If LO connections refresh 5 time the query will refresh 5 timesRegards
    Venkat

  • How can I compare single value with multiple value...

    Hello,
    I want to compare one value with multiple values, how can it possible ?
    Here in attachment I tried to design same logic but I got problem that when I entered value in y that is compared with only minimum value of x, I don't want that I want to compare y value with all the x value and then if y is less then x while loop should be stop.
    I want to do so because in my program some time I didn't get result what I want, for example x values is 4,5,6,7,8  and y value is  suppose 6 then while loop should be stop but here it consider only minimum number and its 4 here so while loop is not stop even y is less then 7 and 8. So I want to compare y value with all the entered values of x and if y is less then any of x values then while loop should be stop and led should be ON.
    Please guide me how can I do so.....
    Solved!
    Go to Solution.
    Attachments:
    COMPARISON.vi ‏8 KB

    AnkitRamani wrote:
    Thank you very mach for your help..
    may be i have solved this ....i have made one change in my vi that instead of min. i select max and max. value is compare with the value of y and then if y is less then the max. while loop will be stop other wise its run continuously.
    this is working fine...
    any ways thanks again for your help and time...
    I have to agree with Lewis - his way is more efficient.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Dual uplinks with single 5400 and single 6509 (with multiple interface cards)

    I have a single 5400 with two gige ports and a single 6509 with dual gige line cards.
    What would be the best method for running them with dual connections in case an interface or line card goes bad?
    Thanks in advance.

    Thank you for the reply Joseph. I swear I've ran SLA on 6500's before. This box is running IOS 12.2 so maybe that's the culprit.
    I found a simple way to configure both devices redundantly using administrative distanced routes pointing through a specified interface. On the 6509, the routes point to a loopback address on the 5400, on the 5400 it's configured as default routes. Like this document explains:
    http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/27082-ip-static-routes.html
    Seems to work like a champ.

  • Single prompt with multiple selection criteria

    I need to build a prompt against a date field; right now this prompt has 'greater than or equal to' criteria.
    Is there a way to show all criterias in a report view (not Edit Query mode or Edit Report) associated with a single prompt?
    this way users will have flexibility to change criteria from 'greater than and equal to' to 'less than and equal to'...etc without going into Edit mode.
    Please advise.

    Hi Ahmed,
    This is a bit of a long shot.
    In the universe, you will need a derived table which has a list of operators.
    SELECT '>' from DUAL
    UNION ALL
    SELECT '<' FROM DUAL
    and base a class/object on it Useful objects, Operators.
    build a prompt on that
    @prompt('Select Operator' 'A', 'Useful objects\Operator', mono...)
    you can then use this it in your calculatin in the report
    if(UserResponse("Select Operator")="<";[val1]-[val2];if(UserResponse("Select Operator")=">";[val2]-[val1];0))
    Let me know if it works

  • Use single message with multiple spry "states"

    forgotten past decided to use spry widgets to do the validation. One of the things that can get old pretty quick is to have to create a different message for each thing that can go wrong, even if you need to display the same message. For example, if a user needs to enter 9 digits, the message for entering too few, too many, and letters can pretty much be handled by "The value should be exactly 9 digits."
    Is there a way to use just one div/span and have it show for all of these conditions? I need to be able to code this manually, because for whatever reason the widgets don't show up properly in the DW UI (either because it's an old version or because the widgets have been edited by hand at some point in a way that's incompatible with the DW UI). It also needs to be compatible with older browsers (i.e. I could probably do this by assigning multiple classes to the element(s), but I am not sure what browsers would support this). Many of our users are in libraries, so we have to anticipate that the browser may not be up-to-date.

    Don't use Spry.  Adobe abandoned the framework in 2012.  It is no longer supported.
    Best advice, use HTML5 forms alone or with jQuery validation.  In the following example, the number field requires 9 characters.  This works in modern browsers.
    <form id="MyForm">
    <label for="number">Number:</label>
    <input name="number" type="number"  id="number" placeholder="123456789" maxlength="9" minlength="9" required>
    <input id="submit" name="submit" type="submit" value="SEND">
    </form>
    For older browsers that don't support HTML5 forms, you can add jQuery validation to your forms by adding this to your document's <head> tag.
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--JQUERY VALIDATE PLUGIN-->
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js">
    </script>
    <!--INVOKE FORM VALIDATION-->
    <script>
    $(document).ready(function() {
        $("#MyForm").validate();
    </script>
    Nancy O.

  • Executing a single vo with multiple Queries

    Hi,
    I have the following requirement.
    I have 4 different queries. These queries are different for different user roles. Right now, we have 4 different user roles. Even though, we have 4 different queries ... but the SELECT statement is same for all the 4 queries.
    i.e., they all retrieve the same information like, ORG_ID, ORG_NAME, MANAGER_ID, MANAGER_NAME. This view i ll be using to drop as a table.
    My question is, can you please suggest me the best way to implement this: Instead of having 4 different views, would like to have a single view using which i can execute these 4 queries based on the user logs in.
    Please let me know your suggestions ASAP.
    Thanks,
    Kiran

    Kiran Konjeti wrote:
    Hi,
    I have the following requirement.
    I have 4 different queries. These queries are different for different user roles. Right now, we have 4 different user roles. Even though, we have 4 different queries ... but the SELECT statement is same for all the 4 queries.
    i.e., they all retrieve the same information like, ORG_ID, ORG_NAME, MANAGER_ID, MANAGER_NAME. This view i ll be using to drop as a table.
    My question is, can you please suggest me the best way to implement this: Instead of having 4 different views, would like to have a single view using which i can execute these 4 queries based on the user logs in.
    Please let me know your suggestions ASAP.
    Thanks,
    KiranHi,
    There are many ways to achieve this use case. few that are coming into my mind are
    1. Create a one View object with UNION ALL and use filter the queries using View Criteria based on role
    2. Use Oracle database Virtual private database feature (VPD) to filter the data when user logs-in by overriding the method in Application module.
    search this forum for more detail
    Zeeshan

  • Single Fact with Multiple Conformed Dimensions

    Hi,
    I have a fairly simple report:
    Dim A and Dim B are joined with Fact 1
    Now, I want all rows from Dim A and Dim B along with Fact 1 values. If there are no matching values of Dim A and Dim B in Fact 1, I should get NULL or some message "No Data Available".
    If I make left outer join from Dim A to Fact 1 and Dim B to Fact 1 (to consider all rows from dimension tables), I dont get matching records. Because Fact 1 may not have all records for Dim A or Dim B.
    I dont want to make Full outer joins between Dim A and Fact 1 and DIme B and Fact 2. Do I have any other solution?

    Hi,
    ok let's assume,
    I have something like voucher used flag in one fact table, this is not a measure, it's a degenerated dimension entry.
    What to do with this one? My model is at the moment clear, we have managed to have 15 facts and 10 conformed dimensions, without issues.
    Now they want to analyze over this flag "voucher used" in best case over all facts and dimension combinations.
    This is the main requirement
    regards,

  • Send a Single Mail with Multiple Attachment

    Hi Every One,
    SO_DOCUMENT_SEND_API1 is the function Module used  to send a file as attachment with the mail.My requirement is to send more than one file as multiple attachments in the same mail. Is this Possible? and How?
    Regds,
    Rajeev.N

    Yes this is possible.  This is what the packing_list parameter of this function module is for.  You put all of your content together into the contents_bin or the contents_txt (or a combination of both).  You then add an entry into the packing_list  table for each individual element.  Here is some code samples for filling in the packing_list:
              objpack-transf_bin = 'X'.
              objpack-head_start = body_counter.
              objpack-head_num   = 1.
              objpack-body_start = body_counter.
              objpack-body_num   = tab_lines.
              objpack-doc_type   = extention.
              objpack-obj_name   = objhead.
              move objhead to
                           objpack-obj_descr.
              body_counter = body_counter + tab_lines.
              objpack-doc_size   = tab_lines * 255.
              append objpack.
    We keep a counter for each element.  We have to supply the starting position of each element and its total lenght.

Maybe you are looking for

  • Document name exceeds allowed length

    Hello all, We are getting an "Document name exceeds allowed length" error when we want to approve a shopping card. There is no attachments in the SC and no reason for this error. First of all we already created the SC and approval WF started and now

  • ITunes 11.0 doesn't transfer album art to an iPhone

    My album artwork shows up in iTunes but when I transfer the MP3 files to my iPhone (6.0.1) the album artwork is either missing or I get the wrong artwork, that is, I get the artwork for another album.   I tried to delete one album cover from iTunes a

  • RE: Mapping Error

    Hi, I have two tables , Table 1 and Table 2 Table 1 has columns Ccode,Cname. Table 2 has columns ItemCode,ItemName,ItemPrice,Ccode Table 1 is joined with Table 2 on Ccode on a one-many relationship and I have the Physical join and the proper logical

  • Installing Creative Cloud on Windows 8

    Did anyone else have difficulty loading Creative Cloud on a Windows 8 pc?

  • Dreamweaver template giving up "instancebegineditable tag inside editable region" error

    I have been searching the internet and any forum I can find relating to Dreamweaver and find it has been a comman problem for a lot of people but the solutions they got have not helped me. I created a template by following steps via a helpvid.net tut