Sorting a column does not result in distinct values on Dashboard prompts

Hi,
We have a period column, the records of which are 'JAN-02' , "FEB-02"...."DEC-09". We need sort this column in descending order in Dashboard Prompts. We have another column "Date", which has been used to sort the period column. To achieve this in descending order, we have converted Show Results from “All Values” to “SQL Results” in dashboard prmpts, then entered the below sql.
SELECT "CODE COMBINATIONS"."LINE AC PERIOD" FROM INVOICE_PAYMENTS
order by "CODE COMBINATIONS"."LINE AC DATE" desc
The above sql resulted in non-distinct values as below. Using distinct in the above sql throws syntax error.
Period
JAN-09
JAN-09
JAN-09
FEB-09
FEB-09
How do we get distinct values and in descending order??
Thanks and appreciate any ideas
Surya

Go to advanced tab and check "Use distinct clause" that will fire a distinct to the query.
In the rpd month logical column , there is an option called sort order in the general properties and you need to specify the date column if you need to sort it based on the date column and in the Answers you can simply enable Descending sort order on the same column. That should take care of it
Hope it helps
Thanks
Prash

Similar Messages

  • Using a Sql Result in Default Value of Dashboard Prompt

    Hi,
    I Create a Dashboard Prompt, this have two dates, the initial and the last for a period to filter. I need to set the default value in the fist and last date of the previous month, for example, if today is 20th of november the default value of initial date has been 1th of October and the last date has been 31th of october.
    I used in default the option 'SQL Results' and use the next sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM') FROM dual;
    SELECT TRUNC(last_day(add_months(sysdate, -1))) from dual;
    But when I try to use the dashboard prompt the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT TRUNC(add_months(sysdate,-1),'MM') FROM dual
    When I try to use only select sysdate from dual; the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27004] Unresolved table: "dual". (HY000)
    Thanks for your help.

    Thanks for your help. Finally I solve this issue of
    this form:
    1. I Create a Initialization Block with the next
    sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM')
    INITIAL_DATE ,TRUNC(last_day(add_months(sysdate,
    -1))) END_DATE, To_char(TRUNC(add_months(sysdate,
    -1), 'MM'), 'YYYYMM') PERIOD FROM dual;
    2. Then I Create three Repository Variables and
    assign the Initialization Block to this
    3. In the Dashboard Prompt I use the "Server
    Variable" Option in the default and call the three
    variables.
    Thanks again
    EdwinHi: How u access server variable with two fields of date. Actually, I am doing the same work. But I can not do this work. Because this is ok when the date is greater than or less than. When i use between, in default server variable button did not show any text area for reoository variable. I also made initailization block with 2 fields.
    My Task is, I have to initialize the one date coloumn. From Date: and To Date. Pluzz help me in section
    Ali Haroon Nawaz

  • Deletion of plannable values in a cell does not result in zero value

    Hi,
    In a planning report when I wanted to set the values in a plannable cell to '0', I just deleted the value in that cell without actually setting a '0' expecting a '0' to appear in that cell after I refresh my report. But instead I get my original value back in the cell. Is this standard behaviour or a bug or do I need to change some setting to get a '0'.
    I run my planning reports on the portal.
    Thanks.
    Regards,
    Jaya

    Hi,
    Check this out please.
    [Re: Cannot Save empty cell, can only save 0|Re: Cannot Save empty cell, can only save 0]
    regards,
    Ergin Ozturk

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Argument error; the number of columns does not equal the number of parameters.

    I am using the Database Toolkit (Enterprise Connectivity) to check for a network connection and then send information from a local database to a SQL database on the network if needed.  In development of the code I continue to receive Error 1 and the Possible Reason(s) is "Argument error; the number of columns does not equal the number of parameters."  I am using the DBToolsSelectData.VI to retrieve data from the local MDB file and the DBToolsInsertData.VI to write it to the SQL file.  The collection of the data from the MDB file is successful and the connection and validation of the table and columns in the SQL file is also successful.  The error occurs when the Insert VI tries to build the query.  The number of columns being written (attempted) does match the number of columns in the data, they are both 16 string arrays.

    Ok, it's taken a bit, and I have a solution! It took a while to figure out what the DCT is doing, but it seems to be working now.
    The reason for the original error is that you were passing into the insert subVI an array of variants - which the input to the VI coerced into a single variant. You were getting the error because as far as the insert VI was concerned you were only passing it a single data value. The way to get around that was to create a cluster with one element for each column value, convert the cluster to a variant and pass the result to the insert VI - see attachment.
    In terms of the other modifications, I made a copy of the endurance.mdb file, emptied it and used it as the destination for the copy.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    NetworkCheck.vi ‏49 KB

  • The Table.Column does not exist on the rowset

    Hi I have the following issue:
    I keep getting a message in Power BI Designer Preview that states:
    The 'collections.Name' column does not exist in the rowset.
    I have a MySQL DB connected to an Access DB and then I've created and saved a query within Access.
    Then I'm bringig in this query into Power BI Designer. To note, I can see my 1 row of data in the Query view of Power BI Designer but my error appears when I goto report after it tries to load the data into the model
    the MySQL Statement looks like this:
    SELECT orders.TRUNKSHOWID,
           orders.ID,
           orders.DATEENTERED,
           orders_products.NUMBER,
           orders_products.SIZE,
           orders_products.DESCRIPTION,
           products_categories.NAME AS Cat1,
           products_categories_1.NAME AS Cat2,
           collections.NAME,
           Releases.Name,
           orders_products.PRICE,
           orders_products.DISCOUNT,
           orders_products.TYPE,
           products.WHOLESALECOST,
           orders.FIRSTNAME,
           orders.LASTNAME,
           orders.ADDRESS,
           orders.ADDRESS2,
           orders.CITY,
           orders.STATE,
           orders.ZIP,
           orders.COUNTY,
           orders.COUNTRY,
           orders.PHONE,
           orders.EMAIL,
           orders.BILL_FIRSTNAME,
           orders.BILL_LASTNAME,
           orders.BILL_ADDRESS,
           orders.BILL_ADDRESS2,
           orders.BILL_CITY,
           orders.BILL_STATE,
           orders.BILL_ZIP,
           orders.BILL_COUNTRY,
           trunkshows.TRUNKKEEPERID
    FROM trunkshows
    INNER JOIN (Releases
                INNER JOIN ((((products
                               INNER JOIN (orders_products
                                           INNER JOIN orders ON orders_products.ORDERID = orders.ID) ON products.ID = orders_products.PRODUCTID)
                              INNER JOIN products_categories ON products.CATEGORYID = products_categories.ID)
                             INNER JOIN products_categories AS products_categories_1 ON products.CATEGORYID2 = products_categories_1.ID)
                            INNER JOIN collections ON products.COLLECTIONSID = collections.ID) ON Releases.ID = products.ReleasesID) ON trunkshows.ID = orders.TRUNKSHOWID

    Hi
    When you create a workbook in DEV, you will be assigning a query for that workbook
    When you transport workbook from DEV to QA,the assigned workbook comes along with it
    When you transport only query from DEV to QA, there are certain technical elements called query elements which may not have transported properly
    To avoid this inconsistency between DEV and QA,it is advisable you transport the workbook again....Create new workbook in DEV, assign a query, transport the workbook to QA
    Regards
    N Ganesh

  • SSDT - Using a SharePoint list data feed as source - "column does not exist in the rowset" error

    Hey guys!
    So, I want to use a SharePoint list data to create a cube/tabular model, in order to make a complex analysis in PPS using MDX.
    To create the tabular model, I'm using the SS Data Tools, and importing a feed from the respective SharePoint list (using the _vti_bin/listdata.svcextension and then selecting the list(s) I wanna to import).
    Everything looks fine and smooth, I can select and preview the data in the table import wizard, but in the end, when importing, I always get this error IF the table has one or more row of data (if the table is empty, it's ok...) - the <...>
    column doesn't exist in the rowset.
    (Curiously, when I have the same procedure in PowerPivot for Excel, I have no problems, everything works fine. The problem is that then I get again errors if I try to create a tabular model on SSDT importing a PowerPivot file).
    Here's the error:
    Had you already tried this in SSDT? Are you experiencing the same trouble?
    Best regards, and thanks in advance!
    Jorge Mateus
    Jorge Mateus

    I noticed something else too.
    I can't process Tabular Models on both SSDT and SSMS (2012), but I can process Tabular Models created on PowerPivot.
    I tried to create a Data Feed connection on PowerPivot, and it was successfully created. However, if restoring the PowerPivot Tabular DB on my SSAS Tabular instance and processing (full) the model through SSMS, it won't work.
    Is there anything different on PowerPivot and SSDT related with Partitioning or connections to the data sources?
    Regards,
    Jorge
    Jorge Mateus
    Update:
    When trying to Restore a PowerPivot file on my SSAS Tabular Server and full process the model:
    The operation failed because the source does not contain the requested column. You can fix this problem by updating the column mappings.
    More Details:
    The 'X' column does not exist in the rowset.
    An error occurred while processing the partition 'X_81dabac5-c250-4a8c-8832-ad7fcedd35cb' in table 'X_81dabac5-c250-4a8c-8832-ad7fcedd35cb'.
    The current operation was cancelled because another operation in the transaction failed.
    X is the first column of the source table, no matter if I chose others on the PowerPivot table.
    When trying to import data from a data feed using SSDT:
    The 'X' column does not exist in the rowset.
    An error occurred while processing the partition 'X_ee6be81f-2235-4113-b404-cfcb20647a38' in table 'X_ee6be81f-2235-4113-b404-cfcb20647a38'.
    The current operation was cancelled because another operation in the transaction failed.
    X is the first chosen column to import.

  • [nQSError: 59014] The  requested column does not exist in this table.

    Hi
    As you know this error has been discussed in other threads.. the difference in mine is that not only the time series measures but all the columns are giving me the error...none of the columns are being displayed... The rpd has no consistency errors. can anyone suggest what may be going on?
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT column1 saw_0 FROM Paint3 ORDER BY saw_0
    Thank you
    mm58

    I guess you have the column in RPD, and it is available for queries.
    are you using any time measures? if so check you chronological keys.

  • The requested column does not exist in this table

    Hi All,
    I am getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT "Customers - Dim".CITY FROM MVDEMO ORDER BY 1
    When I tried viewing data online I am able to view the data in the physical Layer. Also I tried connecting thru ODBC Client and issued the same SQL (above) and it returns the data.
    I am using Oralce BIEE 10.1.3.2.1 version.
    Please let me know if any faced this kinda issue and how to resolve this.
    Thank you.

    Check your column mapping in the BMM layer in your Customers - Dim logical table. Does the CITY column point to a physical table column?

  • Latest OSX Mavericks on an iMac..... Gmail, View, Sort By,  Date does not stick...

    Sort by date does not stick...
    Is there a solution?

    I've tried re-installing my iTunes software and searched throughout the forums and elsewhere without so far being able to determine how to resolve this difficulty.
    In case my original question formulation was not clear, in the past I could click on the header (while viewing my iTunes library in 'Songs' view) and cycle through "Album", "Album by Artist", in either ascending or descending order, and so forth.
    Now I'm only able to chose between "Album by Artist", either ascending or descending. There is no "Album" view option available to me, as there has always been in the past.
    I'm completely puzzled as to how this happened. Perhaps I inadvertently hit the wrong key combination while using iTunes and it changed something, I just don't know.
    I would really appreciate it if any other forum members have suggestions as to how I might fix this!

  • PO version change does not resulting output

    Hi,
    Initially PO created with version "0" and resulted message out put automatically and PO got printed.
    Then, user has done some changes to PO then it is resulting version "1" but this vesrion does not results automatic out put as like version "0"
    Please suggest me,
    Thanks,
    Venkat

    hi,
    Check settings again..
    1.whether you have given reason of change while you make changes in the document and whether it has been customized??
    2. Check settings for "set up for change displays"
    3. check Settings for PO messages ....here check whether the field is defined for relevent changes ie." Print relevent Purchase doc. changes"...
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Sep 23, 2010 10:45 AM

  • My device icon in the left column does not appear. so, I can not make the sync.

    my device icon in the left column does not appear.
    so, I can not make the sync

    Device Not Recognised 
    For PC  >  http://support.apple.com/kb/TS1538
    For Mac  >  http://support.apple.com/kb/ts1591

  • A column does not edit

    On my report page, I click the edit. When I edit different columns only one column does not change. It remained the same value as before.
    Was there a setting I messed up?
    Thanks.

    Phil,
    Do you mean I have to go outside of application express to oracle root forum to do this?
    Thanks.
    Lloyd

  • When trying to Forward, the addresses column does not appear

    When trying to 'forward' a message, the 'addressees' column does not appear and I cannot select recipients. This suddenly happened a short time ago and I can't figue out why.

    When you have a Write window open you toggle the Contact Sidebar on and off with the F9 key.

  • WPF: How to make the first column does not show row separator and Left column separator in DataGrid?

    Our WPF application uses DataGrid.
    One of request is that first column of DataGrid does not show row separator and also does not show Left column separator. So it looks like the first column does not belong to the DataGrid. However, when select a row, the cell of first column still get selected.
    How do we make it? Thx!
    JaneC

    Hi Magnus,
    Thanks for replying our question and provide your solution!
    Your solution works by setting "HorizontalGridLinesBrush" and "VerticalGridLinesBrush" to {x:Null} in the DataGrid style and modify "CellStyle" in first column as following:
    <DataGridTextColumn MinWidth="32"
    Binding="{Binding CellName}"
    CanUserReorder="False"
    CanUserSort="False"
    Header="Cell}"
    IsReadOnly="true" >
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="IsEnabled" Value="False"></Setter>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridCell}">
    <Border BorderThickness="0" BorderBrush="{x:Null}"
    Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Margin="-1">
    <Grid Background="{TemplateBinding Background}" VerticalAlignment="Center" Height="42">
    <ContentPresenter VerticalAlignment="Center"/>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </DataGridTextColumn.CellStyle>
    </DataGridTextColumn>
    We found another way to achieve it by using DataGridRowHeader. The good way to use DataGridRowHeader is that we do not need to make the first column ReadOnly (click on first column does not select whole row anymore). Select RowHeader in a row will select
    whole row. Move scroll bar horizontally, the row header still keep in visible area.
    <Style TargetType="{x:Type DataGridRowHeader}" x:Key="dataGridRowHeaderStyle">
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="HorizontalAlignment" Value="Center" />
    <Setter Property="Height" Value="42" />
    <Setter Property="SeparatorBrush" Value="{x:Null}" />
    <Setter Property="FontSize" Value="16" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridRowHeader}">
    <Grid>
    <Border x:Name="rowHeaderBorder"
    BorderThickness="0"
    Padding="3,0,3,0"
    Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
    BorderBrush="{x:Null}">
    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
    </Border>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <DataGrid>
    <DataGrid.RowHeaderStyle>
    <Style TargetType="DataGridRowHeader" BasedOn="{StaticResource dataGridRowHeaderStyle}">
    <Setter Property="Content" Value="{Binding CellName}" />
    <Setter Property="Width" Value="35"/>
    </Style>
    </DataGrid.RowHeaderStyle>
    </<DataGrid>
    JaneC

Maybe you are looking for

  • How to make gif-animations from java-midlets?

    I have produced a collection of Java animations as midlets. I am planning to make gif-animations of some of them. I suppose I can make a gif-picture of every frame of the applet through coding that myself in the code. Then I could take those gif-pict

  • Creation of a new record based on the value of a picklist

    Hi, My requirement is whenever i select a picklist value in Opportunity record type based on the value selected a new opprtunity record should get created and get assigned to a role or A User otherwise a lead should get created and should be assigned

  • SAPDB password in content repository

    Hello, I 'm in the process of configuring the repository with content server. Two of the parameters with content repository are SAPDBUser and SAPDBPassword. Before finishing to configure this we have used the report RSCMSPWS to set the technical user

  • 6288 portrait/landscape

    I just bought 6288 can I switch the view on the screen from portrait to landscape?

  • Computer and workflow setup

    My new computer has a 250 SSD and a 1TB HD. Then I have a 1TB external HD for backup. Most of my photos are still on the SSD. I am guessing I should work with them In the SSD and then move them to the Internal HD and then back them up to the external