Top Count in SmartView Data Filter

I'm trying to do a Top Count data filter in SmartView. I can get it to work in MDX no problem but I get the following error when I do it in SmartView:
"Cannot query members by name. Analytic Server Error(1007116): No dimension is tagged as Time dimension for virtual time series."
Do I have to have a dimension tagged as Time in order to use this function in SmartView?
Thanks,
Tim

You can try this code:
USE tempdb
GO
CREATE TABLE dbo.Car
(CarMake NVARCHAR(100),
CarModel NVARCHAR(20),
RedColorCount INT,
BalckColorCount INT ) ;
GO
INSERT dbo.Car
VALUES
( N'Maruti' , N'VXI' , 10 , 25 ),
( N'Maruti' , N'LXI' , 50 , 45 ),
( N'Maruti' , N'ZXI ' , 17 , 28 ),
( N'Maruti' , N'VDI' , 18 , 8 ),
( N'Maruti' , N'ZDI' , 25, 96 );
GO
CREATE FUNCTION dbo.GetTopCar( @NRows INT )
RETURNS TABLE AS RETURN
SELECT
CarMake ,
CarModel ,
RedColorCount ,
BalckColorCount
FROM dbo.Car
ORDER BY RedColorCount DESC
OFFSET 0 ROW FETCH NEXT @NRows ROW ONLY
GO
SELECT *
FROM dbo.GetTopCar(3);
SELECT *
FROM dbo.GetTopCar(5);
DROP TABLE dbo.Car ;
GO
Cheers,
Saeid Hasani
Database Consultant
Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
[My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
[Twitter] [Facebook] [Email]

Similar Messages

  • If I use my home WiFi to get on the internet, does that count against my data usage?

    I'm all set to join Verizon for the first time, except for one thing. Unlike Sprint (terrible but improving speeds on their network), I see that my bill will be a bit higher with Verizon, which is not a problem since everyone I know (on Verizon) gets much faster speeds when they use their phone to get on the internet. So I decided to get the 4GB data package, except the customer service rep online at Verizon's website told me that even while using my phone through my WiFi setup at home, any time spent on the internet will count against my data usage. This seems outrageous, but she assured me it was the case. I've been told this is not the case by most people, but one person I talked to did back up her statement. Can anyone give me the truth on this? If I use my phone at home to get online, but first connect to my wireless connection, does that still count against my data usage? That would mean I'd go over the 4GB limit by like halfway through the month lol. Thanks everyone.

    When you are on wifi the cellular data symbol should not be present on the information bar on the top of your phone. it should just show the wifi symbol. 
    Now a good thing to do is go into your phones settings and have it only update over wifi, the same for your apps. This way there are no surprises. Secondly turn "cellular data off" when at home to just use wifi. Ask yourself why would you pay verizon for data usage over your own wifi connection?
    Verizon since they went to the limited data structure has been banging people with high overage fees and its a huge money maker for them, you will never get any truthful answer from their customer no-support. One from another won't even give you the same screen read answers. pity I must say.  Just do the suggestions I made and you should be ok. Also turn off global roaming for data to only use verizons network. Personally T-Mobile has unlimited 4G LTE which has been clocked faster than all the carriers. But alas the service is not everywhere. You could have saved quite a bit of money with them.  Good Luck
    Edited for discussion of moderation as required by the Terms of Service.
    Message was edited by: Admin Moderator

  • How to get top 11 values per date range

    I want to get the top 11 values by date range.
    Sample Data
    CREATE TABLE SAMPLE_DATA
        DOMAIN_NAME VARCHAR2(100),
        QTD         NUMBER,
        LOAD_DATE   DATE
    -- Insert
    BEGIN
      FOR lc IN 1..20
      LOOP
        FOR ld IN 1..30
        LOOP
          INSERT
          INTO SAMPLE_DATA VALUES
              'DM_'
              ||lc,
              round(dbms_random.value(0,1000)),
              SYSDATE-ld
        END LOOP;
      END LOOP;
    COMMIT;
    END;
    SELECT *
    FROM
      (SELECT DOMAIN_NAME,
        QTD,
        LOAD_DATE
      FROM
        (SELECT DOMAIN_NAME,
          QTD,
          LOAD_DATE
        FROM SAMPLE_DATA
        WHERE LOAD_DATE = TRUNC(SYSDATE-3)
        ORDER BY QTD DESC
      WHERE ROWNUM <=10
      UNION ALL
      SELECT 'Others' DOMAIN_NAME,
        SUM(QTD) QTD,
        LOAD_DATE
      FROM
        (SELECT DOMAIN_NAME,
          QTD,
          LOAD_DATE
        FROM
          (SELECT rownum rn,
            DOMAIN_NAME,
            QTD,
            LOAD_DATE
          FROM
            (SELECT DOMAIN_NAME,
              QTD,
              LOAD_DATE
            FROM SAMPLE_DATA
            WHERE LOAD_DATE = TRUNC(SYSDATE-3)
            ORDER BY QTD DESC
        WHERE rn > 10
      GROUP BY LOAD_DATE
    ORDER BY QTD DESC
    -- Result
    DOMAIN_NAME                 QTD                         LOAD_DATE                  
    Others                      2888                        24/03/13                   
    DM_1                        1000                        24/03/13                   
    DM_20                       933                         24/03/13                   
    DM_11                       913                         24/03/13                   
    DM_3                        743                         24/03/13                   
    DM_13                       572                         24/03/13                   
    DM_12                       568                         24/03/13                   
    DM_9                        564                         24/03/13                   
    DM_6                        505                         24/03/13                   
    DM_5                        504                         24/03/13                   
    DM_2                        480                         24/03/13    
    Please, Help me get in one query this result using a range of date.
    e.g
    using LOAD_DATE BETWEEN '24/03/13' AND '25/03/13'
    DOMAIN_NAME                 QTD                         LOAD_DATE                  
    Others                      2888                        24/03/13                   
    DM_1                        1000                        24/03/13                   
    DM_20                       933                         24/03/13                   
    DM_11                       913                         24/03/13                   
    DM_3                        743                         24/03/13                   
    DM_13                       572                         24/03/13                   
    DM_12                       568                         24/03/13                   
    DM_9                        564                         24/03/13                   
    DM_6                        505                         24/03/13                   
    DM_5                        504                         24/03/13                   
    DM_2                        480                         24/03/13                     
    Others                      1948                        25/03/13                   
    DM_1                        807                         25/03/13                   
    DM_8                        764                         25/03/13                   
    DM_7                        761                         25/03/13                   
    DM_11                       656                         25/03/13                   
    DM_18                       611                         25/03/13                   
    DM_17                       523                         25/03/13                   
    DM_14                       467                         25/03/13                   
    DM_19                       447                         25/03/13                   
    DM_15                       437                         25/03/13                   
    DM_6                        380                         25/03/13             Thank you in advance.

    I got the solution. Just sharing.
    I used analytic functions that make my job easy.
    Sample Data
    DOMAIN_NAME                 QTD                         LOAD_DATE                  
    DM_1                        807                         25/03/2013                 
    DM_1                        1000                        24/03/2013                 
    DM_2                        226                         25/03/2013                 
    DM_2                        480                         24/03/2013                 
    DM_3                        244                         25/03/2013                 
    DM_3                        743                         24/03/2013                 
    DM_4                        48                          25/03/2013                 
    DM_4                        413                         24/03/2013                 
    DM_5                        164                         25/03/2013                 
    DM_5                        504                         24/03/2013                 
    DM_6                        380                         25/03/2013                 
    DM_6                        505                         24/03/2013                 
    DM_7                        761                         25/03/2013                 
    DM_7                        212                         24/03/2013                 
    DM_8                        764                         25/03/2013                 
    DM_8                        308                         24/03/2013                 
    DM_9                        354                         25/03/2013                 
    DM_9                        564                         24/03/2013                 
    DM_10                       214                         25/03/2013                 
    DM_10                       367                         24/03/2013                 
    DM_11                       656                         25/03/2013                 
    DM_11                       913                         24/03/2013                 
    DM_12                       37                          25/03/2013                 
    DM_12                       568                         24/03/2013                 
    DM_13                       332                         25/03/2013                 
    DM_13                       572                         24/03/2013                 
    DM_14                       467                         25/03/2013                 
    DM_14                       87                          24/03/2013                 
    DM_15                       437                         25/03/2013                 
    DM_15                       450                         24/03/2013                 
    DM_16                       238                         25/03/2013                 
    DM_16                       299                         24/03/2013                 
    DM_17                       523                         25/03/2013                 
    DM_17                       143                         24/03/2013                 
    DM_18                       611                         25/03/2013                 
    DM_18                       145                         24/03/2013                 
    DM_19                       447                         25/03/2013                 
    DM_19                       464                         24/03/2013                 
    DM_20                       91                          25/03/2013                 
    DM_20                       933                         24/03/2013                  Top 11 QTD of DOMAIN_NAME per Data Range.
    SELECT *
    FROM
      (SELECT DOMAIN_NAME,
        QTD,
        LOAD_DATE
      FROM
        (SELECT LOAD_DATE,
          DOMAIN_NAME ,
          QTD,
          (DENSE_RANK() OVER (PARTITION BY LOAD_DATE ORDER BY QTD DESC )) AS RANK_QTD
        FROM SAMPLE_DATA
        WHERE trunc(load_date) BETWEEN '24/03/2013' AND '25/03/2013'
      WHERE RANK_QTD <= 10
      UNION ALL
      SELECT 'Others',
        SUM(QTD) AS QTD,
        LOAD_DATE
      FROM
        (SELECT LOAD_DATE,
          DOMAIN_NAME ,
          QTD,
          (DENSE_RANK() OVER (PARTITION BY LOAD_DATE ORDER BY QTD DESC )) AS RANK_QTD
        FROM SAMPLE_DATA
        WHERE trunc(load_date) BETWEEN '24/03/2013' AND '25/03/2013'
      WHERE RANK_QTD > 10
      GROUP BY LOAD_DATE
    ORDER BY LOAD_DATE ASC,
      QTD DESC
    DOMAIN_NAME                 QTD                         LOAD_DATE                  
    Others                      2888                        24/03/2013                 
    DM_1                        1000                        24/03/2013                 
    DM_20                       933                         24/03/2013                 
    DM_11                       913                         24/03/2013                 
    DM_3                        743                         24/03/2013                 
    DM_13                       572                         24/03/2013                 
    DM_12                       568                         24/03/2013                 
    DM_9                        564                         24/03/2013                 
    DM_6                        505                         24/03/2013                 
    DM_5                        504                         24/03/2013                 
    DM_2                        480                         24/03/2013                 
    Others                      1948                        25/03/2013                 
    DM_1                        807                         25/03/2013                 
    DM_8                        764                         25/03/2013                 
    DM_7                        761                         25/03/2013                 
    DM_11                       656                         25/03/2013                 
    DM_18                       611                         25/03/2013                 
    DM_17                       523                         25/03/2013                 
    DM_14                       467                         25/03/2013                 
    DM_19                       447                         25/03/2013                 
    DM_15                       437                         25/03/2013                 
    DM_6                        380                         25/03/2013 

  • Performance issue on Date filter

    In my where condition I wanted a date filter on sale date.  I want all sales after 9/1/2014.   
    CASE1
    If I explicitly use date filter like 
    SaleDate > '2014-09-01 00:00:00:000' I am getting the result in 2 seconds.
    CASE2
    Since I may need to use this data value again, I created a date table with single column "date" and loaded the value '2014-09-01 00:00:00:000' . 
    So now my where is like 
    SaleDate > (Select date from dateTable)
    When I run this , the result does not show up even after 10 mins. Both date types are datetime. I am baffled.  Why is this query not coming up with the result?

    As mentioned by Erland, for the optimizer, both situation are very different. With a literal, the optimizer can properly estimate the number of qualifying rows and adapt the query plan appropriately. With a scalar subquery, the value is unknown at compile
    time, and the optimizer will use heuristics to accommodate any value. In this case, the selection for all rows more recent than September 1st 2014 is probably a small percentage of the table.
    I can't explain why the optimizer or engine goes awry, because the subquery's result is a scalar, and shouldn't result in such long runtime. If you are unlucky, the optimizer expanded the query and actually joins the two tables. That would make the indexes
    on table dateTable relevant, as well as distribution and cardinality of dateTable's row values. If you want to know, you would have to inspect the (actual) query plan.
    In general, I don't think your approach is a smart thing to do. I don't know why you want to have your selection date in a table (as opposed to a parameter of a stored procedure), but if you want to stick to it, maybe you should break the query up into something
    like this. The optimizer would still have to use heuristics (instead of more reliable estimates), but some unintended consequences could disappear.
    Declare @min_date datetime
    Set @min_date = (SELECT date FROM dateTable)
    SELECT ...
    FROM ...
    WHERE SaleDate > @min_date
    If you use a parameter (or an appropriate query hint), you will probably get performance close to your first case.
    Gert-Jan

  • Constant Your Set Top Box Has No Data Connectivi​ty/Poor DVR Performanc​e

    For the past few months I have been dealing with very poor performance out of my multi room DVR. Often in the middle of watching shows, the DVR will just disconnect and look for the hub which means rebooting the cable box and a constant stream of, “your set top box has no data connectivity” messages. This has elevated to beyond a nuisance. I have been in contact with Verizon Fios' live chat multiple times however they fail to solve the problem. The picture on the DVR is extremely choppy as it is having difficulty streaming and then it just drops and once again searches for the hub.
    I have also recently upgraded to the 75/35 internet and the router has been cutting out and resetting at least twice an hour ever since. I love Verizon Fios and have recommended it to many of my friends who have also signed up. I am just looking for a solution to my DVR and internet woes.

    You need to have a tech come to your house. You could have bad light at the ONT., bad router, bad ONT or bad coax somewhere.

  • How to create a data filter for BAPI used in a Distribution Model ?

    I am trying to create IDOC's for a QM inspection plan via message type QPMK in ECC 6.0. When creating the new message type in the Distribution Model, it forced me to use a BAPI (MasterInspectionChar) rather that just the message as I have done in the past. In order to ensure that only IDOC's related to a specific plant and material type get sent out, I was trying to create a filter.
    I am able to get into a 'Change Filter' dialog by double clicking 'No data filter set' under the node 'MasterInspectionChar.SaveReplica'. However, an attempt to highlight anything on this dialog and clicking button 'Create filter group' results in msg. 'Select node: Content-dependent parameter filtering'.
    Online help led me in a different direction, one thread led me to believe I needed to create a table entry for the filter in table TBD16 via BD81 for later attachment to the BAPI in the Distribution Model. Before this, I created two Z* ALE Object Type records for plant and material type in table TBD11 via BD95 for what I thought would provide a lookup back in BD81 for creation of a new filter record, but these objects are not found. Per the help, I am also unclear as to whether I would need to set up Receiver determination or Parameter filtering, nor where to make this step in the configuration happen?
    Can anyone point me back in the correct direction to get a data filter set up for this BAPI within the Distribution Model ?
    Thanks - Mike

    Just to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'.  But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter. 
    I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'.   Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI.  Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning.  Is this warning occuring because of missing configuration?
    Thanks - Mike

  • Row Level Security - Data filter - Roles Variable Not working in OBIEE 11.1.1.7.1

    Hi all,
    Previously, we were using OBIEE 11.1.1.5.0 and we were able to assign users to application roles by using the initialization block to assign the ROLES session variables.
    1. My USER_SECURITY table in Oracle database:
    USER_NAME | USER_ID | ROL
    user1       | 1723    | GobalDataRole
    user2       | 1739    | GobalDataRole
    user3      | 1743    | GobalDataRole
    2. The SQL query in my session initialization block:
    select USER_NAME, USER_ID, ROL
    from USER_SECURITY
    where USERNAME = ':USER'
    3. The row-wise initialization option is not checked.
    4. In the Oracle Enterprise Manager Fusion Middleware Control, we created new application role: GobalDataRole and sync with rpd.
    5. The GobalDataRole is used in the RPD to filter the data under permissions --> data filter. GobalDataRole only has access to Country A data.
    6. Result: under my account, also in rpd Manage --> Sessions, user variable details
    User_name , user_id & Rol variable is working fine as expected,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    User1, User2, and User3 are able to see the data correctly according the their data access setup.
    Now, we using OBIEE 11.1.1.7.1 and using the same method, but we not able to assign users to application roles by using the initialization block to assign the ROLES session variables anymore.
    Result:
    User_name & user_id variable is working fine as expected, but the ROl variaible is not capturing the DB value,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    User1, User2, and User3 can see all data (which is wrong) because they are not assigned to the correct application role that sets the data restriction/filter.
    Has anyone encountered the same issue? Any advice on how to solve this?
    Thanks in advance!
    Satheeshkumar P

    Thanks user10615659     ,
    - Yes the variable ROLES available in OBIEE 11.1.1.7.1
    - Tested the init block and variables in offline rpd its working as expected.
    - In online rpd, except ROLES and GROUP variable remaining variables working fine.
    - Verified log file in both online and offline init block testing - the init block execution is successful.
    Thanks

  • File Count with selected date range

    Hi,
    Our requirement is to get the file count with selected date by the user from two sharepoint date time controls i.e. dtp1 and dtp2 into the data table. I am able to get the file count of specific folder from Pages library through below code. Now need to get
    the selected date range from two date time picker controls and check with the item created by is within the date range. If yes I need to get the file count.
    So please share your ideas/thoughts to do the same.
    SPList list =
    wikiweb.Lists["Pages"];
                        SPFolderCollection oFolders
    = list.RootFolder.SubFolders["foldername"].SubFolders;
                        DataTable dt
    = new DataTable();
                        dt.Columns.Add("Column1");
                        DataRow dr;
                        if (oFolders.Count
    > 0)
                            foreach (SPFolder oFolder in oFolders)
     if (!oFolder.Name.Equals("Forms"))
                                    dr
    = dt.NewRow(); 
    dr["Column1"] = oFolder.ItemCount.ToString();
    dt.Rows.Add(dr);
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    I have modified the code as below
    if((DateTime)(oFolder.Item.File.TimeCreated>dtFromDate.SelectedDate)&&(DateTime)(oFolder.Item.File.TimeCreated<dtToDate.SelectedDate))
    But still it is throwing the error.
    Please share your ideas on the same.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

  • SP2013 - Date Filter Web Part looses connection when used in a site template

    Hi,
    I created two table reports in SQL Reporting Services 2012 and inserted in a web page using the Reporting Service Report viewer in SharePoint 2013 with CU Dez 2013. The two reports require two dates and I use two date filter web parts (I did not try the
    date range solution I saw in the fórum).
    So the user inputs the two dates in date filters that send the information to thereports in the same page.
    They work in the site and I saved it as template. However when I create e new site using it as a templates, the date filter connections are broken and of course, they did not work.
    For another report where I usea text filter, it worked without any problem in the template.
    Does anybody know any workaround?
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi ,
    The new site based on the saved site template will generate new ID for date filter web part, in the web part page the SPWebPartConnection "ProviderID" value seems still to reference the original date filter web part ID (see from
    SharePoint Designer), as a workaround we can re-configure the web part connection from the web part page manually or programmatically from that new site web part page.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/8d98206d-b41f-4ee4-b537-a4bf5cec0434/sharepoint-2010-save-site-as-template-webpart-connections-broken?forum=sharepointgeneralprevious
    http://sympmarc.com/2007/09/20/removing-a-web-part-connection-in-sharepoint/
    Thank
    Daniel Yang
    TechNet Community Support

  • Data Filter in Data Selection -DM

    Hi ALL,
    I am facing problem in loading blank value data to BPC. Scenarion is
    Account In BI has Hier as ACT_1
                                              ACT_2
                                             ACT_3
                                             ACT_4
                                             UNassigned - In data base it has balnk and when you report in BI you can see as #-(Un assigned as a text descrption)
    in my data manager i need to select the or filter the accounts by Hier as shown above
    i can select as ACT_1, ACT_4 but i need to select the blank value also i need to set the filters for unasigned but BPC data manager package will not allow the UNASSIGNED Value to be select.
    Any idea on this can i handle some ho in transformation,
    Thanks in advance
    Regards
    Ram

    Hi,
    Based on my test, Data filter does not lost when we re-open the file in Excel 2013. Thus, I think it is not a bug. Thus, please provide us more information to assist you better.
    Did this issue occur with the previous file that created with Office 2010?
    Have you tried to re-create a new file to test?
    If this issue occur only with the previous file that created with Office 2010, this issue might be caused by the file compatibility, pleases use compatibility checker to update the files:
    https://support.office.com/en-ca/article/Check-file-compatibility-with-earlier-versions-d9856881-5875-4c58-915f-06859b2943a7
    If this issue occur with all files even with a new file, please try to repair Office 2013.
    Hope it's helpful.
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Line chart to plot count of 2 date fields against calendar month

    Post Author: springle
    CA Forum: Charts and Graphs
    I would like to create a line chart with 2 lines.  I would like the x axis to be a calendar month.  I would like the y axis to be the count of a date field for that month.  I would like 2 lines, one the the count of applications recieved in a month and the other to be the number of shipments in a month.  I can make a chart to plot one or the other but not both on one chart.So in summary I want of a count of date1 and a count of date2 by calendar month in one line chart.Thanks in advance,Scott

    Post Author: springle
    CA Forum: Charts and Graphs
    Thanks for the reply but I am afraid this does not solve my problem.  Your proposal make the month count of Date1 records in the fields and the count of Date2 in the month of date1 I am try to graph...In the month of Jan: 56 apps and 49 deliveriesIn the month of Feb: 76 apps and 79 deliveriesIn the month of Feb: 86 apps and 69 deliveriesThe change on date cannot be either app date or del date.  It needs to be independent from a calendar timeline. Scott 

  • Count the displayed date rows on a column.

    Hi,
    I am trying to have a table with the following information and try to give a total count (of the dates visible) at the bottom of the table for the date columns. (not counting the rows)
    (E.g.- Under the Sent column there are 5 dates displayed and there are 6 numbers associated. On the received column there are 3 dates displayed for 6 numbers)
    Could you please advice me how to accomplish this. Thank you in advance.
    Rob.
    Name SENum SentReceived
    John      1234     12/22/06     
         5678     12/13/06     
         6565     12/19/06     1/6/07
         5656 - -
    Jane     9866 12/18/06     1/5/07
    Jim     5657 12/18/06 12/14/06           
    Total:           5      3

    I ma not sue what you want but
    here is some idea at sql plus
    SQL> compute count of ename on deptno
    SQL> compute count of sal on deptno
    SQL> select deptno,ename,sal from emp order by deptno
      2  ;
        DEPTNO ENAME                                                     SAL
            10 CLARK                                                    2450
               KING                                                     5000
               MILLER                                                   1300
    count                                                       3          3
            20 SMITH                                                     880
               ADAMS                                                    1100
               FORD                                                     3000
               SCOTT                                                    3000
               JONES                                                    2975
    count                                                       5          5
            30 ALLEN                                                    1600
               BLAKE                                                    2850
               MARTIN                                                   1250
               JAMES                                                    1045
               TURNER                                                   1500
               WARD                                                     1250
    count                                                       6          6
               DEV                                                      5000
    count                                                       1          1

  • BO Report Mobile - date filter

    Hello!
    I have a report in BO Mobile developed with web intelligence tool with two fields of sales values​​, one daily and one monthly. I'm having the following problem: when I select a specific date to the monthly values ​​are equal to the daily values​​.
    Could someone help me.
    It is possible to apply the date filter, make the monthly accumulated values ​​remain?
    Sincerely.
    Gleziane

    Hi
    At Universe level you can create two measure values like daily sales and MTD monthly sales =@
    suppose say yu run the query on date 19-5-2014
    for First measure daily sales where date =@prompt value (i.e date prompt)
    for 2nd measure Monthly sales where date<=@prompt value AND Month=month(@prompt )
    the above is for MTD
    Hope this helps u
    Thanks & Regards
    Sunil

  • Date Filter uses unknown property by default, doesnt work

    Created a filterable and sortable table by dragging and dropping in VO from a AM. While it automatically sets the appropriate properties for filtering, and for non-date fields it works fine, for dates always "no row are found," even if I specifically choose a valid date where rows should return.
    I noticed in the property inspector, the inputdate value in the column's facet filter is set to an invalid value (by default when dragged and dropped!). In the property inspector, the value is outlined in orange (value=#{vs.filterCriteria.trSentOnDate}, populated by default), and the tooltip states "filterCriteria is an unknown property."
    Here's a snippet of the table def
            <af:table value="#{bindings.RequisitionsAllVO11.collectionModel}"
                            var="row"
                            rows="#{bindings.RequisitionsAllVO11.rangeSize}"
                            emptyText="#{bindings.RequisitionsAllVO11.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.RequisitionsAllVO11.rangeSize}"
                            rowBandingInterval="0"
                            filterModel="#{bindings.PoRequisitionHeadersAllVO1Query.queryDescriptor}"
                            queryListener="#{bindings.PoRequisitionHeadersAllVO1Query.processQuery}"
                            filterVisible="true" varStatus="vs"
                            selectedRowKeys="#{bindings.RequisitionsAllVO11.collectionModel.selectedRow}"
                            selectionListener="#{bindings.RequisitionsAllVO11.collectionModel.makeCurrent}"
                            rowSelection="single"
                            binding="#{backingBeanScope.backing_browseReqsPOs.t3}"
                            id="t3">
                    <af:column sortProperty="SentOnDate" filterable="true"
                               sortable="true"
                               headerText="#{bindings.RequisitionsAllVO11.hints.SentOnDate.label}"
                               id="c26">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.SentOnDate}"
                                      id="id2"/>
                      </f:facet>
                      <af:outputText value="#{row.SentOnDate}" id="ot20">
                        <af:convertDateTime pattern="#{bindings.RequisitionsAllVO11.hints.SentOnDate.format}"/>
                      </af:outputText>
                    </af:column>BTW, I looked at the ADF RC Demos, and I noticed that for the filterable table demos, the date filter isn't enabled.

    We're getting there.
    New error now. I neglected to set the attribute Format and Format Type. I set those in the VO (Simple Date and MM/dd/yyyy, respectively), and now I get a nullPointerException.
    I hit enter after entering a date, and a popup shows the following:
    java.lang.NullPointerException
    For more information, please see the server's error log for an entry beginning with: Server Exception during PPR, #2with the following in the DefaultServer log
    Aug 13, 2009 11:14:35 AM oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    SEVERE: Server Exception during PPR, #2
    javax.servlet.ServletException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    ...

  • Date filter is coming in physical query

    Hi,
    I have following problem,please help me.
    1.My OBI in connecting Vertica Database through ODBC 3.5.
    2.It's working fine for all report and if I give date filter condition then in physical query ,which is sending by OBI to Vertica doesn't have date filter condition:
    Ex: I have Call Type,and Date as dimension table and Call Mesures as fact table
    when I am selecting in answer select Call type name,measure1 for a particula Call type='Dropped'
    Physical Query generated by OBI as
    Select Call type name,mesure 1 from call_type_dim a,call_measures b where a.call_type_key=b.call_type_key and call_type_name='Dropped'
    But when I am loking for particular calandar date(for 07/27/2009:
    it's generating following query:
    Select Call type name,mesure 1 from call_type_dim a,call_measures b,date c where a.call_type_key=b.call_type_key and call_type_name='Dropped' and c.calandar_date_key=b.calandar_date_key
    But in logical query it's showing calandar_date='07/27/2009'
    I am expecting OBI should generate query:
    Select Call type name,mesure 1 from call_type_dim a,call_measures b,date c where a.call_type_key=b.call_type_key and call_type_name='Dropped' and c.calandar_date_key=b.calandar_date_key and c.calandar_date='07/27/2009'
    Where I have done wrong ,please help for Oracle DB i.e OCI 10g ,it's generating correct physical query

    Check cache settings.
    prefix this in prompt
    set variable disable_cache_hit=1;
    btw: Did you get a chance to look at https://forums.oracle.com/thread/2594287

Maybe you are looking for