Last() function in DeskI

Dear All,
I have an issue with Desk Intelligence.
I would like to obtain the last value of a list. I know that in WebI this is possible with the fuction Last() but I'm not able to do the same thing in DeskI environment.
Here below an example:
Yearmonth     Varible value
201001               1
201002               1
201003               1
201004               1     
201005               1
201006               1
201007               1
201008               1
201009               1
201010               1
201011               1
201012                1
I would like to obtain for example 1 in 201012 leaving the query as it is, without more filter that the ones that I have declared in my query.
Anyone can help me?
Thank you

Dear Pawadan,
thank you for your answer, it was my first time here and probably I didn't explain well my situation.
Here below the data that I want to summarize in my report. For each store I have 2 indicators every month:
- active number: it tells if at the end of the month a store is active. If active it is equal to 1, if not active it is 0
- sales: the amount of monthly sales per month
Besides I have two dimension: store, month (eventually also the year)
Here some data useful as example:
month     1     2     3     4     5     6     7     8     9     10     11     12
active number:                                                            
store 1     1     1     1     1     1     1     1     1     1     1     1     1
store 2     1     1     1     1     1     1     1     1     0     0     0     0
store 3     0     0     0     1     1     1     1     1     1     1     1     1
month     1     2     3     4     5     6     7     8     9     10     11     12
sales:                                                            
store 1     10     12     31     21     32     21     12     32     31     13     32     32
store 2     43     32     12     14     32     41     32     42     0     0     0     0
store 3     0     0     0     43     42     32     51     23     23     53     12     42
Suppose I'm in december (month 12) and I want for the active store (store 1 and store 3) the YTD amount of sales, that is:
               sales
store 1     279
store 3     321
With WebI I'm able to do this using Last() function as follow: =Last([Store]ForEach([Month]))
It permits me to filter those stores that in december are active.
With DeskI I'm able to do this only utilizing a Where Month=12. Instead I would like to automatize the process inputing a prompt with a filter on the Month = 12.
I hope to have explained well my situation.
Thank you.
Edited by: ale.85 on Mar 9, 2011 4:38 PM

Similar Messages

  • Last() function issue

    I have a requirement to display the Log Solution/Log Comment activities from Service Desk tickets onto the new BOXI report. With the custom formula that uses Last() function which displays only on the first record and rest it just blanks out for some unknown reason. It would be great if anyone can share a solution who has achieved a fix to such problem in BOXI.

    Hi Vishnu,
    I have managed to achieve the same results by the steps I have written above :
    Last function displays the last record in the query result in your report and that is why it is showing you just one record. If you are planning to display the latest log comment for a service desk ticket then try creating a universe objects which displays the max([Time Object]).
    Then display the log comments where [Time Object]=max([Time Object])
    Time Objects is the objects which captures your timestamp whenever a comment is logged
    You need to make sure that you have two different queries in your report. One containing [Time Objects] and other containing the max([Time Object])
    Create another variable [Comment Flag] which says
    =if([Time Objercts]=max([Time Objects]);"Y";"N")
    Apply a block filter for [Comment Flag]="Y"
    This should work.
    Regards,
    Tanisha

  • Ms Access Last function equivalent function in T-SQL

    Hi,
    I am new to SQL Server. I have table with information below. Some provider is listed twice in the table
    Provider Code
    Outlet Code
    Provider
    Province
    Phone
    First Visit Date
    Last Visit Date
    Supervision Score (%)
    Score of Critical Steps
    IUD Percentage of Critical Steps
    80% Country Quality Service
    Critical Step
    Meet Quality Guideline
    5188
    01-00-0068
    HENG Vuoch Eng
    Banteay Meanchey
    (012) 958-919
    4/2/2014
    4/2/2014
    91.66
    2.43
    81.37
    No
    No
    No
    5188
    01-00-0068
    HENG Vuoch Eng
    Banteay Meanchey
    (012) 958-919
    28-05-2014
    28-05-2014
    87.96
    2.43
    81.37
    Yes
    Yes
    Yes
    5410
    01-00-0110
    Chhuoy Pannada
    Banteay Meanchey
    (016) 865-985
    18-03-2014
    18-03-2014
    85.18
    2.52
    84.31
    Yes
    Yes
    Yes
    5190
    01-00-0123
    Nhek Puthary
    Banteay Meanchey
    (012) 217-175
    8/1/2014
    8/1/2014
    84.25
    2.29
    76.47
    No
    Yes
    No
    5190
    01-00-0123
    Nhek Puthary
    Banteay Meanchey
    (012) 217-175
    22-05-2014
    22-05-2014
    83.33
    2.29
    76.47
    No
    Yes
    No
    5413
    01-00-0184
    Kou Mom
    Banteay Meanchey
    (097) 787-8280
    11/2/2014
    11/2/2014
    89.81
    2.64
    90.19
    n/a
    Yes
    n/a
    5413
    01-00-0184
    Kou Mom
    Banteay Meanchey
    (097) 787-8280
    27-02-2014
    27-02-2014
    98
    2.64
    90.19
    Yes
    Yes
    Yes
    5634
    01-00-0264
    Yoeub Chakriya
    Banteay Meanchey
    (012) 938-538
    22-05-2014
    22-05-2014
    88.88
    2.64
    88
    Yes
    No
    No
    5542
    01-00-0601
    Ngann Ratha
    Banteay Meanchey
    (012) 201-406
    20-05-2014
    20-05-2014
    87.81
    2.23
    74.33
    No
    Yes
    No
    5532
    01-00-0913
    Em Mouth
    Banteay Meanchey
    (012) 447-674
    6/3/2014
    6/3/2014
    92.59
    2.79
    93.13
    Yes
    Yes
    Yes
    5532
    01-00-0913
    Em Mouth
    Banteay Meanchey
    (012) 447-674
    6/6/2014
    6/6/2014
    92.59
    2.79
    93.13
    Yes
    Yes
    Yes
    5554
    01-00-0920
    Boa Tay
    Banteay Meanchey
    (012) 985-539
    18-03-2014
    18-03-2014
    84.4
    2.26
    75.49
    No
    Yes
    No
    5554
    01-00-0920
    Boa Tay
    Banteay Meanchey
    (012) 985-539
    17-06-2014
    17-06-2014
    85.18
    2.26
    75.49
    No
    Yes
    No
    5535
    01-00-0922
    Say Sav Dy
    Banteay Meanchey
    (012) 764-632
    4/3/2014
    4/3/2014
    79.62
    2.47
    86.28
    No
    Yes
    No
    5535
    01-00-0922
    Say Sav Dy
    Banteay Meanchey
    (012) 764-632
    19-06-2014
    19-06-2014
    79.62
    2.47
    86.28
    Yes
    No
    No
    5414
    01-00-0963
    Thorn Sao Rouey
    Banteay Meanchey
    (012) 673-017
    9/4/2014
    9/4/2014
    82.4
    2.58
    86
    Yes
    Yes
    Yes
    In Ms Access, I can reproduce list of unique provider using the last function (see table below) 
    How can I do it in SQL Server?
    Provider Code
    Outlet Code
    Provider
    Province
    Phone
    FirstOfFirst Visit Date
    LastOfLast Visit Date
    LastOfSupervision Score (%)
    LastOfScore of Critical Steps
    LastOfIUD Percentage of Critical Steps
    LastOf80% Country Quality Service
    LastOfCritical Step
    LastOfMeet Quality Guideline
    5137
    06-00-0417
    Kang Sophalna
    Kampong Thom
    (092) 954-367
    22-04-2014
    22-04-2014
    87.03
    3
    100
    Yes
    Yes
    Yes
    5138
    06-00-0415
    Nou Vichetra
    Kampong Thom
    (012) 773-102
    20-03-2014
    12/6/2014
    96.29
    3
    100
    Yes
    Yes
    Yes
    5140
    06-00-0254
    Yim Cheng Sim
    Kampong Thom
    (012) 725-597
    4/3/2014
    6/6/2014
    96.29
    3
    100
    Yes
    Yes
    Yes
    5143
    06-00-0868
    Long Chanthida
    Kampong Thom
    (012) 682-009
    20-05-2014
    20-05-2014
    93.51
    3
    100
    Yes
    Yes
    Yes
    5145
    06-00-0969
    Kong Sithan
    Kampong Thom
    (092) 914-384
    1/2/2014
    1/2/2014
    95.36
    n/a
    No
    n/a
    5146
    06-00-0893
    Kam Keng
    Kampong Thom
    (089) 664-617
    11/3/2014
    12/6/2014
    87.03
    3
    100
    Yes
    Yes
    Yes
    5148
    06-00-1035
    Heng Sonath
    Kampong Thom
    (012) 524-063
    6/3/2014
    3/6/2014
    92.59
    3
    100
    Yes
    Yes
    Yes
    5149
    06-00-0845
    Ieng Keatheng
    Kampong Thom
    (011) 667-795
    18-03-2014
    10/6/2014
    87.96
    3
    100
    Yes
    Yes
    Yes
    5157
    07-00-0143
    Ung Chetha
    Kampot
    (012) 976-371
    12/4/2014
    12/4/2014
    90.74
    2.76
    92.15
    Yes
    Yes
    Yes
    5188
    01-00-0068
    HENG Vuoch Eng
    Banteay Meanchey
    (012) 958-919
    4/2/2014
    28-05-2014
    87.96
    2.43
    81.37
    Yes
    Yes
    Yes
    5190
    01-00-0123
    Nhek Puthary
    Banteay Meanchey
    (012) 217-175
    8/1/2014
    22-05-2014
    83.33
    2.29
    76.47
    No
    Yes
    No

    What SQL Server version you are using? Since SS2012 we have LAST_VALUE function
    http://msdn.microsoft.com/en-us/library/hh231517.aspx
    SELECT * FROM
    SELECT <columns>,ROW_NUMBER() OVER (PARTITION BY providercode ORDER BY date DESC) rn
    ) AS Der WHERE rn=1
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • LAST function in ACCESS, what's in Oracle ?

    Hi
    Does anyone know what would be a equivalent of LAST function in Access to Oracle ?
    In Access, the Last function returns the last value from the result set of a query.
    The syntax for the Last function is:
    Last ( expression )
    expression is the value that you'd like to return from the result set. The Last function only returns the last value in the result set.
    Thanks,
    Amrik

    Some alternative way:
    SQL> select ename, deptno, sal from emp order by deptno, sal, ename desc;
    ENAME          DEPTNO        SAL
    MILLER             10       1300
    CLARK              10       2450
    KING               10       5000
    SMITH              20       1000
    ADAMS              20       1100
    JONES              20       2975
    SCOTT              20       3000
    FORD               20       3000
    JAMES              30       1120
    MARTIN             30       1250
    WARD               30       1450
    TURNER             30       1500
    ALLEN              30       1800
    BLAKE              30       2850
    14 rows selected.
    SQL> SELECT ename
      2    FROM (
      3  SELECT ename,
      4         ROW_NUMBER() OVER (PARTITION BY deptno ORDER BY sal desc, ename) AS rnum
      5    FROM emp
      6  )
      7  WHERE rnum = 1;
    ENAME
    KING
    FORD
    BLAKE
    SQL> select max(ename) KEEP (DENSE_RANK LAST ORDER BY sal, ename desc) from emp
      2  group by deptno;
    MAX(ENAME)
    KING
    FORD
    BLAKE
     Rgds.

  • Key F4 to retry the last function / instruction similarly in MS-Office

    Key F4 to retry the last function / instruction similarly in MS-Office ?

    Your question isn't very clear on what you are trying to achieve.
    I'm assuming that you're talking about capturing a user pressing the F4 button in your LabVIEW application to retry the last action/command. I think this would be possible using an event structure to detect the F4 key being pressed and using this to prompt your application to do that action/command again.
    The event structure can be set up as follows:
    How you actually implement this will depend on the architecture of your application - you'll need to remember the last action that was performed (perhaps on a shift register).
    If you're talking about in the LabVIEW development environment itself - I don't think this is possible. You could suggest it on the LabVIEW ideas exchange though!
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Can I use regeion 1 DVD's on my mac purchased last year 27inch desk top?

    can I use region 1 DVD's on my mac purchased last year 27inch desk top?

    The region is probably unset with five available changes. Click here for more information.
    (100796)

  • How to find out which was the last Function Fired in a given schema ..?

    Hi All ,
    Suppose there is a function called track_account (Accnt_id, bank_name ...)
    I have a requirement wherein I need to find out when was the last date when this function was called , by which user and what was the parameter list that was passed .For example i this case - what accountid and bank_name combinations were passed .
    I know the information is stored in one of the V$ tables but am not able to locate the exact table and column that would give me this information .
    Please suggest .
    Edited by: user3481493 on Mar 8, 2010 10:58 PM

    amol_dev wrote:
    Thank you for your reply Brynjar.
    However, I was trying to figure out a way to do this without having to change the calling command line, because due to legacy reasons, it is not possible to change the command line calling the parent applications of this common code.You cannot change the command line, but you can change the applications?
    In main() do this:
    System.setProperty("whoami",(new Throwable().getStackTrace()[0].getClassName()));Elsewhere:
    String whoami = System.getProperty("whoami");

  • Getting wrong values when using sum() and last() functions in aggregations.

    Hi..
    I created a request in presentation servicews it includes " employ id,name,organization.cost center,annul salary,haouly salary, head count". for employ 13 cost centers available so 13 annul salaries for 13 organizations.each has annul saari 10400,hourly salary 10.previously when i run the request with headcount not including salaries headcount is 1 for 13 rows. when head count is not included in the requst and ran request it gives for 13 rows salaries are 10,400,10 respectively. when i add the head count to the previous request the salaries become 135200,130 respectively. actual head for each organization is 1.in the requst it show as 13. the headcount field in business layes uses 'other sum(headcount),date last(headcount). i need it to same values for salaries after addition of
    headcount also.
    Thank you.
    Edited by: user10797474 on May 20, 2009 8:08 AM

    Did you already have a look in the log file to see the SQL which is sent to the DB?
    This might be a modeling issue in your RPD. Check if you have set the correct dimensionlevels for your facts.
    Regards
    John
    http://obiee101.blogspot.com/

  • Last aggregate function in not working in Administrator Tool

    hello friends,
    I am trying to use last function in my rpd .but i am unable to use this function.
    because when i am applying this last function on numeric column. then it is giving errors in the report like syntax error,
    table is not reference for the query and
    in the back end query it is treating that column as null value.
    so any is there to help me to resolve this problem.
    Thanks & Regards
    Rahul Gupta

    I think Sarat is refering to the option to use differnt aggregation based on what dimensions are included in the report.
    There is a check box on the aggregation tab in the BMM to specify this.
    Assuming you want to always return the Last, across all dimensions in the report, I think you can ignore this whilst you are investigating.

  • First and last analtic functions

    Hi
    I am trying to understand the functioning of first and last function. but getting not idea how they work.
    doc says
    FIRST and LAST are very similar functions. Both are aggregate and analytic functions that operate on a set of values from a set of rows that rank as the FIRST or LAST with respect to a given sorting specification. If only one row ranks as FIRST or LAST, then the aggregate operates on the set with only one element.
    Can anyone help me to understand this by an example as small simple one
    thanks
    Nick

    SQL> select max(sal) keep (dense_rank first order by empno) sal_max_first
      2       , min(sal) keep (dense_rank first order by empno) sal_min_first
      3       , max(sal) keep (dense_rank last order by empno)  sal_max_last
      4       , min(sal) keep (dense_rank last order by empno)  sal_min_last
      5    from emp
      6  /
      SAL_MAX_FIRST   SAL_MIN_FIRST    SAL_MAX_LAST    SAL_MIN_LAST
                800             800            1300            1300
    1 rij is geselecteerd.The order by clause orders the fourteen employees such that the first one is 7369 - SMITH and the last one is 7934 - MILLER. The expression returns the salary of SMITH (800) or the salary of MILLER (1300). The min and max are dummy since there are no ties when ordering by the primary key (empno).
    Regards,
    Rob.

  • First and Last Time Variation function

    Hi all,
    What Does the functions First and Last do exactly. I think It's hold an aggregation based on Dimension but i can't figure out how it works exactly.
    (PS: I tried it on measure revenu)
    Thanks very much

    Hi,
    I'm not sure whether First & Last function is aviable in OBIEE or not. But you can use that with "evaluate" function. First function is used to retreive the first value in a group. we can use that in conjunction with partition by clause.
    ref the given link for more details
    http://www.oracle-base.com/articles/misc/RankDenseRankFirstLastAnalyticFunctions.php

  • Run Function - command line

    Hi Chaps.Sorry for a bit of a noob question but actually not done this before.
    I am producing a backup / restore script for our helpdesk team. I was looking to have one script rather than two and then depending on what they wanted to do just call the function.
    something like C:\ScriptName.ps1 Get-Backup
    What do i need to do in order to achieve this? Many thanks
    Function Get-Backup
    MD -Force $HomeDrive\$BackupRoot
    Function Get-Restore
    write-host "blah blah blah"

    Yes WallaceTech - If you call both the swich parameter inside the function you will get this result
    Comment last line you will get one functions output
    Function Service-Desk {
    param([switch]$GetBackup,
    [Switch]$Restore)
    if($GetBackup) {Write-Host "Backup in progress" @args}
    if($Restore) {Write-Host "Restore in Progress" @args}
    #Service-Desk -GetBackup
    #Service-Desk -Restore
    Now save this file as Test.PS1
    Call the function as . .\Test.PS1
    Service-Desk -GetBackup
    "Back up in Progress"
    Service-Desk -Restore
    "Restore in Progress"
    Regards Chen V [MCTS SharePoint 2010]
    Followed that mate but after calling the function ..\Test.PS1 i am informed
    PS C:\temp> ..\Test.ps1
    ..\Test.ps1 : The term '..\Test.ps1' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + ..\Test.ps1
    + ~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (..\Test.ps1:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

  • How can I remove iTunes 11 and return to a functional version of iTunes?

    So I was really stupid and updated my perfectly operational version of iTunes to version 11.  After discovering that version 11 is almost totally non-functional (missing a number of useful functions that someone decided were too helpful I guess), I want to delete this horrid example of software non-functionality and return to the last functional version (iTunes 10).  Please tell me there's a way to remove this software wart and return to a functional iTunes.

    I found the following way to return to 10.7.  I moved the following directories and files to the desktop before I deleted iTunes 11:
    Album Artwork (folder)
    iTunes Media (folder)
    Previous iTunes Libraries (folder)
    The following file is found in the Previous iTunes Libraries:
    iTunes Library 2012-11-29.itl (the date on your file will vary depending on when you decided to add version 11)
    The following are files found in the iTunes directory
    iTunes Library Genus.itdb
    iTunes Library Extras.itdb
    Once you have copied these files to your desktop, you have to remove iTunes 11.  I used the uninstall option in CleanMyMac.
    I used this explanation to return to iTunes 10.7:
    Replace the iTunes 11 application with iTunes 10.7
    https://discussions.apple.com/message/20431349
    iTunes 10.7 for OS X  http://appldnld.apple.com/iTunes10/041-7195.20120912.d3uzQ/iTunes10.7.dmg
    You will have to rescue your old iTunes library from your Previous Libraries folder and rename it iTunes Library.itl because a newer version of iTunes irreversibly updates your library file.  See:
    https://discussions.apple.com/mesage/20401436 - turingtest2 11/2012 post on rebuilding empty/corrupt library after upgrade/crash from previous iTunes library file.
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451
    Other issues:
    https://discussions.apple.com/message/20432309 - solution to mobile devices saying they need to be restored after downgrading
    Once you have reinstalled 10.7, put the files and folders you copied to the desktop back into iTunes overwriting the new files that were created during the install.  Restart iTunes and you should see iTunes start to reinstall all the missing files.  This doesn't seem to recreate the playlists but I can fix that problem myself.
    So far, it seems to be working.  YMMV and I'm not recommending you try this, I'm just saying that it's worked for me.

  • Numbers' Functions and Formulas in Multiple Cells, Tables, and Sheets

    Hello,
    I'm stuck with specifics that center around usage, and I get the funny feeling I'm overlooking a simple detail or two.
    If I may, here goes.
    I'm working with a single spreadsheet that has several sheets within it, and each sheet has an identical table. Each table is used to record various data, and I use an additional table in a separate sheet to consolidate some of the information, so that I can track results, at a glimpse, by looking at averages, totals, etc.
    Each data table is organized for consolidation by tracking wins, ties, or losses. It is important to know that each data table only records a single win, tie, or loss along with its other applicable data. And on the actual consolidation table I am trying to tally specific data fields by the use of Numbers' functions and formulas, yet I wish to keep these tallied results organized by the determining factor of whether or not they were gathered from a table that recorded a win, a table that recorded a tie, or a table with a loss.
    To illustrate, each table contains data fields that record start time, finish time, elapsed time, the day of the week, etc. Let's say I have eight tables, and the first two are winning tables, three more are tables that record a tie, and the last three are losing tables. For example, on my consolidated data table I wish to enter a function and formula capturing which of the eight tables are wins, ties, and losses so that I can, at a glance, see how much time elapsed to obtain the wins, ties, and losses. So then, in this example, for wins I want to determine which of those wins took 20 minutes, or which of them took 15 minutes, etc. So then, out of the two wins, let's say both of them took 20 minutes each. I need the numeral 2 to be counted and recorded on the consolidation table since only two tables match the criteria. And I would do the same for all remaining data fields (e.g., start time, finish time, etc.). Just so long as everything is determined by wins, ties, and losses, and then organized by the respective data fields. Simply put, this example determines a total of two wins that meet the data field requirement of 20 minutes. Out of the eight tables (one table per sheet) any other wins would then be organized according to the specific data in the elapsed time data field on it's data table (e.g., 5 minutes, 15 minutes, etc.).
    The exact syntax structure of the functions and formula I'm unsuccessfully using follows below. It only seems to return a result of 1, and I think it is returning this value from the IF Statements. By the way, the Win, Tie, or Loss cell in each data table is cell formatted as a pop-up so I can either select None or 1. But in this example I'm basing this on the time period of 20 minutes, and out of the eight data tables I have two wins which also record the time period as 20 minutes, so I should see 2 and not 1 in the 20 minutes column of the consolidated data table. Also, I tried changing the syntax where I would type "=1" in the IF Statements, but it returned a result of =1, and if I don't include the equals sign and quotation marks the result just shows up as 1.
    My Syntax:
    IF(Trade 1::'Data Recorded (1)' '* Win', 1, IF(Trade 2::'Data Recorded (1)' '* Win',1, IF(Trade 3::'Data Recorded (1)' '* Win',1, IF(Trade 4::'Data Recorded (1)' '* Win',1, IF(Trade 5::'Data Recorded (1)' '* Win',1, IF(Trade 6::'Data Recorded (1)' '* Win',1, IF(Trade 7::'Data Recorded (1)' '* Win',1, IF(Trade 8::'Data Recorded (1)' '* Win',1, IF(COUNTIFS(Trade 1::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 2::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 3::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 4::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 5::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 6::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 7::'Data Recorded (1)' '* Time in Trade (in minutes)', "=20m")+COUNTIFS(Trade 8::'Data Recorded (1)' '* Time in Trade (in minutes)'))))))))))
    Please bear in mind that the COUNTIFS portion of the above syntax structure is something I'm already successfully using to count the totals of other things not mentioned above, and I'm hesitant to delete it since it already works to my satisfaction when I want to, for example, determine the total number of overall wins. So, just for illustration purposes, I might have an overall wins column in my consolidation table that records how many wins there are, regardless of organization by elapsed time, or any other data field. In other words, the COUNTIFS syntax structure already works to my satisfaction. I'm not sure if it's possible to alter it so that it isn't so long, but what's there does work just when counting total numbers, as just mentioned.
    In summary, I'm wondering which function I can use with the COUNTIFS function to determine which of my eight data tables are winning tables, but break those wins down further based on criteria like elapsed time, and in the above example the time elapsed is 20 minutes. As you may see above, I'm unsuccessfully using the IF function. Finally, I've looked at the function browser descriptions of things like LOOKUP, HLOOKUP, VLOOKUP, INTERSECT.RANGES, and a few others. And so far I haven't made good use of any of them the way I've done when I use the COUNTIFS function by itself when only counting overall totals. But now I must determine totals that meet certain criteria, as explained above.
    Please help if you dare (smile). This is a huge project I'm undertaking, and so as not to cause confusion I have not included all of the details. But rather, I've taken a small sampling and set it to the side for experimentation. If this small sample works out to my satisfaction I can simply copy and paste the syntax in all other respective cells in the consolidation table, changing only reference locations, and perhaps conditions or values. One thing is certain, I don't intend on giving up on it.
    Thank you for your time and advice.
    Blessings!
    Message was edited by: solo68
    Added image.

    I'd like to edit the last paragraph of my second posting, but for some reason an entirely new posting is being created when I attempt to do this. So when reading this post, please use it to replace only the last paragraph of my second post containing the four inserted images.
    Last paragraph begins:
    In closing, I need each cell in each column of each row in my consolidation table to remain as is. I have my reasons for doing this, and they all serve a specific purpose. The only exception would be the formatting of the last three rows as footer rows. Most importantly, and I should have made this abundantly clear earlier, my apologies, I need a single function and formula in cell E7 of my consolidation table that will firstly determine which data tables are winning tables while secondly and simultaneously counting which of those winning tables have elapsed times of 20 minutes. Perhaps, now this better explains why my syntax is written the way it is written. In the example I provided, if the proper function and formula were written it would result as 2 in cell E7 in my consolidation table. If there is anything else specific you need of me in order to assist me, please request it. Thank you.
    Last paragraph ends:
    Additionally, to t quinn:
    First off, thank you for returning to assist me. I really do appreciate your efforts. Please be aware that I'm avoiding going into details about each and every portion of my spreadsheet because I wish to avoid discussion that is off topic. As I stated earlier, I'm new to using these features of Numbers. My spreadsheet encompasses a much larger amount of data than I'm referring to in the example in my first post. But in my example I'm isolating just the information concerning what I'm now trying to accomplish to finish my spreadsheet project. Moreover, most of what I've done up to this point I was able to figure out on my own, or get help from watching videos on YouTube, or simply using the application help menu. Please be aware that I consulted all of these, repeatedly. I even contacted AppleCare, and was told this sort of support is not available. In spite of this, I've accomplished a great deal in my first large spreadsheet project. Please be aware that when I wrote my second post and specifically responded to you, I didn't want to be rude or ungrateful, and I still don't, but maybe the suggestions you and Hiroto made about gathering the count of wins, ties, and losses are something I've already done. I think I've done that separately. These counts are already in separate cells, and they are working fine. In my first post where I inserted only one image you can see examples of this in my consolidation table image, in cells B3 and E6. I apologize for not making this abundantly clear earlier. Furthermore, the portion of my syntax that shows the COUNTIFS is the exact way I accomplished this, and it is written the way it is written because I need separate sheets, each with their own data tables. Again, in cell E7 I need to determine which of the eight data tables that record wins are also recording 20 minutes, but I need this in a single function and formula with the result appearing only in cell E7. Once this is figured out I will adjust the syntax to do the same thing with every column (these are not shown but they exist) in my consolidation table for the last three footer rows, named Win Column Totals, Tie Column Totals, and Loss Column Totals. The last three rows being footer rows may not be necessary, and if so, I can convert them back to normal rows. Nonetheless, my consolidation table is counting the totals of all data in all data tables. This much I've already accomplished. Now I have one last function and formula I'm working on in order to determine which of the eight data tables record wins, ties, or losses while it simultaneously counts which of the wins, ties, or losses fall within certain categories like elapsed time, and this will be shown on my consolidation table only in the last three rows. Yes, I've gotten the total wins counted, and separately counted the total number of times 20 minutes was the elapsed time used, but so far, just looking at my consolidation table I don't know if the total number of times 20 minutes was used was with a win, tie, or loss. That's what I need to know now. Everything else is already accomplished. So then my consolidation table will show the totals for all data fields in my eight data tables as illustrated in cells B3 and E6. The last three rows of my consolidation table will break this down in a single function and formula with one row for wins, a second for ties, and a third for losses. And each of these respective last three rows will in the same function and formula determine if the win, tie, or loss also is one of the data fields in my eight data tables. How? By the use of columns in my consolidation table. Remember, each of my eight data tables are identical. In the example in my first post I only used one data field, elapsed time (Time in Trade), to illustrate in one column on my consolidation table what I'm trying to accomplish with all of the columns not shown in my consolidation table. Once this is figured out I can adjust it to complete the remainder of the consolidation table. Thank you, t quinn.
    To all reading this and attempting to offer assistance, if for any reason I'm still not explaining myself clearly, please continue to ask me more specific questions. I realize it's hard to communicate this way, and if Apple allowed us to upload the actual spreadsheet it would make this entire forum a better place to communicate. But that's going off topic, so let's simply focus on the matter at hand. Thank you.
    Blessings!

Maybe you are looking for

  • Losing network connection (phone, text, data)

    For the past couple of weeks I have had problems losing my network connection affecting phone calls, text messages and data access. The problems seem to be occurring more frequently, and have not been able to identify a consistent pattern yet. Phone:

  • Things I would like to know before I purchase an iPhone

    I am considering purchasing an iphone but need to know if it is capible of a few things first. I teach online classes and when I travel, I need to log in to my course sites to check work and communicate. I also meet my classes weekly for a group chat

  • Latest Adobe Reader, PDF will not attach to email message

    I downloaded the latest Reader Jan 2014, I can use PDF's fill in forms etc as normal. However when I go to attach the PDF to my email (Tried Hotmail/Outlook, Yahoo mail, Mail.com) once the file has been selected to attach a messagi in the window wher

  • Initial forward in RichFaces app gets 404, but simple JSF app works fine

    (I asked about this on the RichFaces forum, but perhaps this isn't a RichFaces issue.) 've just started to look deeply into JSF. I'm deploying some test apps to WebLogic 9.2.2. I have two simple apps I'm testing. One is a plain JSF app, and the other

  • Cable TV on an intel iMac?

    Is it possible to watch cable TV through an intel iMac? I'll be moving into a dorm this September and not having to bring a TV to school would save a lot of room. Also, if you can watch cable on an iMac, is it possible to hook up a Tivo as well? Than