Concatenation of Constants values with Conditions in DMEE Tree

Hi everybody,
I am having problems with constants in a DMEE tree node. I need to concatenate this constant value if there is more than one register so i am doing condition on the constant but it tells me that I am not allowed to do a condition with agregation IDs.
Can annyone tell me what other way I have to do that?
Regards and thanks in advance,
Juan

Hello Juan,
Can you please elaborate the issue, if possible provide screen shots of the exact problem, so that it will be easy for us to look into the issue
Thanks.

Similar Messages

  • PowerQuery: Replace Value with Conditional if and the actual Date

    Hello,
    i have the following problem. I want to update the values of a column with following condition.
    #"blabla" = Table.ReplaceValue(#"Table","DateValue1_month","DateValue2_month",Replacer.ReplaceValue,{"column"}),
    but i have to check first
    if
    DateValue1_month < ActualMonth
    then
    DateValue1_month = ActualMonth
    else
    keep DateValue1_month
    fi
    Can some help me with this

    I'm a little confused by the question because I can't tell whether DateValue1_month and DateValue2_month represent columns or values. If values, then I'm not sure why they would be quoted in the call to Table.ReplaceValue. Can you flesh out the problem a
    little with more-concrete examples?
    What I'm guessing is that you want to do something like "if the value in the column is less than ActualMonth then replace it with ActualMonth; otherwise, keep it unchanged." While this kind of operation can be done with Table.ReplaceValue, It's
    not straightforward. The problem is that you need to split the logic between a custom replacer function and several literals. If this is what you want to do, I would use Table.TransformColumns and say
    Transformed = Table.TransformColumns(table, {"column", each if _ < ActualMonth then ActualMonth else _})

  • Coloring value with condition in Analysis OBIEE 11g

    Dear Gurus,
    I have pivot analysis, which show date and sales.
    I want to highlight the value of the date if it holiday.
    I want to coloring red the holiday date.
    How to do that?
    Thank you before
    Regards
    JOE

    Hi,
    Here I have one question,
    How you know wether which day is holiday in your time dim? do you have any condition on that?
    If you know that just go-->time date column properties-->click --> condtinoal tab--> apply filter condition and apply the color as you like.
    Hope this help's
    Thanks
    satya

  • Constant Value with UOM

    Hi,
    I would like to create a constant "1PC" in my query. is it possible?
    Thanks.
    Best Regards,
    Chris

    Thanks for answering.
    Do you mean that I need to add a new key figure into the cube?
    I tried to add a key figure to my cube before, however, I cannot add the unit to the cube. Any clue?
    Thanks.
    Best Regards,
    Chris

  • Reg : Concatenation of a column value with multiple rows... URGENT

    Hello,
    Could any of u help me in concatenating a column value with
    multiple rows ???
    For ex : I've the following data from emp table :
    DEPTNO ENAME
    10 KING'S
    30 BLAKE
    10 CLARK
    10 TOM JONES
    30 ALLEN
    30 JAMES
    20 SMITH
    20 SCOTT
    20 MILLER
    10 MILLER
    20 rajeev
    I want the following output :
    deptno Concat_value
    10 KING'S,CLARK,TOM JONES,MILLER
    20 Rajeev,MILLER,SMITH,SCOTT
    30 BLAKE,ALLEN,JAMES
    Thanks in Advance,
    Srini

    Hello Naveen,
    Thanks for ur answer. But I need a single SQL query for getting
    what I want. I know the solution in PL/SQL.
    Please try it in a single SQL....
    Thanks again,
    Srini

  • Standard Report for PO with Condition Value

    HI MM experts,
    I have checked all the existing standard reports ME2*, cud not find the report which gives the
    condition value means
    Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
    condition value for the above is Rs.10, in std sap all reports are showing with net price only
    PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
    Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.

    Thank you! It is not meeting my requirement.
    I am looking for sap standard report to see the PO value or condition value which is nothing but
    Qty X net price. I do not want to touch the tables.
    for analysis purpose, i want to have the total PO value in any MM Standard Report.
    Today i am visiting every PO and looking at header data for PO value. or at item level Condition value.

  • How to create a matrix with constant values and multiply it with the output of adc

    How to create a matrix with constant values and multiply it with the output of adc 

    nitinkajay wrote:
    How to create a matrix with constant values and multiply it with the output of adc 
    Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How could I replace hard coded value in my sql query with constant value?

    Hi all,
    Could anyone help me how to replace hardcoded value in my sql query with constant value that might be pre defined .
    PROCEDURE class_by_day_get_bin_data
         in_report_parameter_id   IN   NUMBER,
         in_site_id               IN   NUMBER,
         in_start_date_time       IN   TIMESTAMP,
         in_end_date_time         IN   TIMESTAMP,
         in_report_level_min      IN   NUMBER,
         in_report_level_max      IN   NUMBER
    IS
      bin_period_length   NUMBER(6,0); 
    BEGIN
      SELECT MAX(period_length)
         INTO bin_period_length
        FROM bin_data
         JOIN site_to_data_source_lane_v
           ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
         JOIN bin_types
           ON bin_types.bin_type = bin_data.bin_type 
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
       SELECT site_to_data_source_lane_v.site_id,
             site_to_data_source_lane_v.site_lane_id,
             site_to_data_source_lane_v.site_direction_id,
             site_to_data_source_lane_v.site_direction_name,
             bin_data_set.start_date_time,
             bin_data_set.end_date_time,
             bin_data_value.bin_id,
             bin_data_value.bin_value
        FROM bin_data
        JOIN bin_data_set
          ON bin_data.bin_serial = bin_data_set.bin_serial
        JOIN bin_data_value
          ON bin_data_set.bin_data_set_serial = bin_data_value.bin_data_set_serial
        JOIN site_to_data_source_lane_v
             ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
            AND bin_data_set.lane = site_to_data_source_lane_v.data_source_lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) lane_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'LANE'
                  AND report_parameters.report_parameter_name  = 'LANE'
             ) report_lanes
          ON site_to_data_source_lane_v.site_lane_id = report_lanes.lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) class_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'CLASS'
                  AND report_parameters.report_parameter_name  = 'CLASS'
             ) report_classes
          ON bin_data_value.bin_id = report_classes.class_id
        JOIN edr_rpt_tmp_inclusion_table
          ON TRUNC(bin_data_set.start_date_time) = TRUNC(edr_rpt_tmp_inclusion_table.date_time)
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data_set.start_date_time >= in_start_date_time
         AND bin_data_set.start_date_time <  in_end_date_time
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       =  bin_period_length;
    END class_by_day_get_bin_data;In the above code I'm using the hard coded value 2 for bin type
    bin_data.bin_type            =  2But I dont want any hard coded number or string in the query.
    How could I replace it?
    I defined conatant value like below inside my package body where the actual procedure comes.But I'm not sure whether I have to declare it inside package body or inside the procedure.
    bin_type     CONSTANT NUMBER := 2;But it does't look for this value. So I'm not able to get desired value for the report .
    Thanks.
    Edited by: user10641405 on May 29, 2009 1:38 PM

    Declare the constant inside the procedure.
    PROCEDURE class_by_day_get_bin_data(in_report_parameter_id IN NUMBER,
                                        in_site_id             IN NUMBER,
                                        in_start_date_time     IN TIMESTAMP,
                                        in_end_date_time       IN TIMESTAMP,
                                        in_report_level_min    IN NUMBER,
                                        in_report_level_max    IN NUMBER) IS
      bin_period_length NUMBER(6, 0);
      v_bin_type     CONSTANT NUMBER := 2;
    BEGIN
      SELECT MAX(period_length)
        INTO bin_period_length
        FROM bin_data
        JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                           site_to_data_source_lane_v.data_source_id
        JOIN bin_types ON bin_types.bin_type = bin_data.bin_type
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time >=
             in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time <
             in_end_date_time + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type = v_bin_type
         AND bin_data.period_length <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
      INSERT INTO edr_class_by_day_bin_data
        (site_id,
         site_lane_id,
         site_direction_id,
         site_direction_name,
         bin_start_date_time,
         bin_end_date_time,
         bin_id,
         bin_value)
        SELECT site_to_data_source_lane_v.site_id,
               site_to_data_source_lane_v.site_lane_id,
               site_to_data_source_lane_v.site_direction_id,
               site_to_data_source_lane_v.site_direction_name,
               bin_data_set.start_date_time,
               bin_data_set.end_date_time,
               bin_data_value.bin_id,
               bin_data_value.bin_value
          FROM bin_data
          JOIN bin_data_set ON bin_data.bin_serial = bin_data_set.bin_serial
          JOIN bin_data_value ON bin_data_set.bin_data_set_serial =
                                 bin_data_value.bin_data_set_serial
          JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                             site_to_data_source_lane_v.data_source_id
                                         AND bin_data_set.lane =
                                             site_to_data_source_lane_v.data_source_lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) lane_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'LANE'
                   AND report_parameters.report_parameter_name = 'LANE') report_lanes ON site_to_data_source_lane_v.site_lane_id =
                                                                                         report_lanes.lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) class_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'CLASS'
                   AND report_parameters.report_parameter_name = 'CLASS') report_classes ON bin_data_value.bin_id =
                                                                                            report_classes.class_id
          JOIN edr_rpt_tmp_inclusion_table ON TRUNC(bin_data_set.start_date_time) =
                                              TRUNC(edr_rpt_tmp_inclusion_table.date_time)
         WHERE site_to_data_source_lane_v.site_id = in_site_id
           AND bin_data.start_date_time >=
               in_start_date_time - numtodsinterval(1, 'DAY')
           AND bin_data.start_date_time <
               in_end_date_time + numtodsinterval(1, 'DAY')
           AND bin_data_set.start_date_time >= in_start_date_time
           AND bin_data_set.start_date_time < in_end_date_time
           AND bin_data.bin_type = v_bin_type
           AND bin_data.period_length = bin_period_length;
    END class_by_day_get_bin_data;

  • Update a filed value with powershell script with ordery by and where condition

    Hi
    I have below powershell script to update list columns but  how i update a field value with ordery by a column and where condition
    below is the part of my script
    $list = $web.Lists[$listName]
    $items = $list.items
    $internal_counter = 1
    #Go through all items
    foreach($item in $items)
    if($item["CourtNO"] -eq $null)
    #if($item["CourtNo"] -eq '1')
    $item["CaseNo"] = $internal_counter
    #how to add a column ordery by Title
    # and where Title field value from 1 to 10
    $internal_counter++
    adil

    Hi,
    You mean that you only need to update all items with Title field value in range 1..10 and order by them before run the loop statement update?
    If so, use CAML query to get the items only match the condition.
    #Build Query
    $spQuery = New-Object Microsoft.SharePoint.SPQuery
    $query = '<Where><And><Gte><FieldRef Name="Title" /><Value Type="Text">0</Value></Gte><Lte><FieldRef Name="Title" /><Value Type="Text">10</Value></Lte></And></Where><OrderBy><FieldRef
    Name="Title"/></OrderBy>'
    $spQuery.Query = $query
    $spQuery.RowLimit = $list.ItemCount
    $items = $list.GetItems($spQuery)
    Hope this help!
    /Hai
    Visit my blog: My Blog | Visit my forum:
    SharePoint Community for Vietnamese |
    Bamboo Solution Corporation

  • Outer join With a constant value

    Hi all,
    In one of query i have found out that the outer join with a constant value like
    to_currency(+)='USD'
    to_currency is a column name in a table.can any one please explain this outer join condtn.
    Thanks in advance
    Senthil

    Hallo,
    if you write var (+) = constant
    var can be equal constant, and also can be null
    Compare these 2 queries
    select e.* from scott.emp e, scott.dept d
    where e.deptno = d.deptno(+)
    and d.deptno(+) = 10EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7369     SMITH      CLERK      7902     17-Dez-1980     800          20
    7499     ALLEN      SALESMAN      7698     20-Feb-1981     1600     300     30
    7521     WARD      SALESMAN      7698     22-Feb-1981     1250     500     30
    7566     JONES      MANAGER      7839     2-Apr-1981     2975          20
    7654     MARTIN      SALESMAN      7698     28-Sep-1981     1250     1400     30
    7698     BLAKE      MANAGER      7839     1-Mai-1981     2850          30
    7782     CLARK      MANAGER      7839     9-Jun-1981     2450          10
    7788     SCOTT      ANALYST      7566     19-Apr-1987     3000          20
    7839     KING      PRESIDENT           17-Nov-1981     5000          10
    7844     TURNER      SALESMAN      7698     8-Sep-1981     1500     0     30
    7876     ADAMS      CLERK      7788     23-Mai-1987     1100          20
    7900     JAMES      CLERK      7698     3-Dez-1981     950          30
    7902     FORD      ANALYST      7566     3-Dez-1981     3000          20
    7934     MILLER      CLERK      7782     23-Jan-1982     1300          10
    select e.* from scott.emp e, scott.dept d
    where e.deptno = d.deptno(+)
    and d.deptno = 10 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7782     CLARK      MANAGER      7839     9-Jun-1981     2450          10
    7839     KING      PRESIDENT           17-Nov-1981     5000          10
    7934     MILLER      CLERK      7782     23-Jan-1982     1300          10
    As you can see, this (+) is very important
    Regards
    Dmytro

  • Initialize class level constant integer with negative values

    Hi,
    While initializing constant integer with -1, the actual value while calling the setter with this value is set to 1-
    Even in the debugger when i view the value its 1-
    Has anybody come across similar proglem? Any help?
    Thanks,
    Piyush

    Hi,
    Thanks for the reply.
    The problem is i'm creating a XML out of this constant and when this value is assigned to a string, the string value is represented as "1-" and further with this value the XML is created.
    Can i try something else here?
    Thanks,
    Piyush

  • Overwrite the system calculated VAT - Condition Value with Inbound VAT Amou

    Hello experts:
    We have a following requirement in my customer for Inbound VAT Processing.
    We want to overwrite the system calculated VAT - Condition Value with Inbound VAT Amount
    Details :
    Aggregated sales Idoc ( WPUUMS01) is used here for posting the daily sale.
    Inbound pricing procedure is ZPOS00 ( copy of POS000)
    VAT is maintained with condition Type ZMWS. Using Tax Codes
    When idoc get posted system calculates the ZMWS and working fine.
    However we would like to overwrite this condition value with inbound condition value (from segment 5 of WPUUMS)
    Example :
    For Article A : inbound aggregated sales Amount= 100 INR and ZMWS is 10%( VAT code B1)
    Then system will calculate 90 INR revenue and 10 INR as VAT
    However due to rounding in POS system we may get from POS the VAT Amount =9.99 for example.
    Tisak wants to overwrite the condition value 10 INR with 9.99 INR.
    I will appreciate if anybody can suggest some approach or share experience if came across the same scenario (Tax condition type).
    Thanks and regards,

    Hi,
    Either you can use rounding in POS such that it round up for 9.99 to 10.
    And then in SAP pricing procedure you can use alternate calculation type as 16 or 17 (17 should be used with decimal point assigned to currency for rounding like 2 decimal for INR).
    doing this will also round the figure from 9.99 to 10 is SAP.
    Hope this solves your query.
    Regards,
    Ashutosh

  • Validation Rules: create a dummy account with constant value 0

    Hi,
    I need to define a control like the following:
    TA00000 >= 0
    I think that I need to create a dummy account with constant value 0 and compare TA00000 against it. I need help to create the dummy account because I'm not sure if I have to use a script logic or not. If anybody could help, I would be very grateful.
    Thanks in advance.
    Almudena

    Hi,
    Thank you for your answer. It works perfectly.
    I have other question related to validation rules. I need to create a validation like this:
    A39300 + A39110 + A39130 + A39010 >= H97300
    It is not supported in BPC NW version to leave blank in ACCOUNT_R in details of validation rule. Do you know how I could define this control?
    Thanks in advance.
    Almudena

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • Concatenation of character values by columns with excluding duplicates

    Hi all! Assume, that there is a multi-rows table of the following form (for example):
    1|A  |   |B  |C  |   |D  |   |
    2|   |   |A  |B  |C  |D  |   |
    3|   |A  |B  |   |   |C  |D  |
    4|   |   |A  |   |B  |C  |D  |
    5|   |   |A  |   |B  |   |C  |i.e. there are NULL and NOTNULL values in VARCHAR2( or NVARCHAR2) format, and the first column is a primary key.
    I need to do next:
    1. Select some set of certain rows, primary keys of those are initialy known, e.g. 1, 3, 5;
    2. Parse this table such way: concatenate values by columns in selected rows, if there are few not-null values in one column, it's necessary to separate concatenated values with comma and whitesbase (it's desirable that's word after comma with whitespace is outputted in lowercase). Finally, it's necessary to insert dot and whitespace character after the last value.
    3. Exclude duplicate substrings from the outcoming text values.
    Thereafter I need to initialize set of local variables with the values, obtained by forementioned parsing (parsing of one column match the corresponding variable), e.g. columns of 1, 3 and 5 rows.
    I.e. result in our case looks like:
    variable1 = A.
    variable2 = A.
    variable3 = B, A.
    variable4 = C.
    variable5 = B.
    variable6 = D, C.
    variable7 = D, C.
    Does the task will be easier, if the number of parsed rows is known (e.g. 3 as in our case)?
    Edited by: 942736 on 02.10.2012 17:17

    You missed your db-version. Please give the result from
    select * from v$version;When you are on 11.2 you can try this (will not work with 10.x):
    with yourtable as
    select 1 id, 'A' col1, 'N' col2, 'B' col3, 'C' col4 ,'N' col5, 'D' col6 ,'N' col7 from dual union all
    select 2,'N','N','A','B','C','D','N' from dual union all
    select 3,'N','A','B','N','N','C','D' from dual union all
    select 4,'N','N','A','N','B','C','D' from dual union all
    select 5,'N','N','A','N','B','N','C' from dual
    select
    (select listagg(col1,',') within group (order by id)||'.' from (select distinct col1, min(id) over (partition by col1 order by id) id from yourtable where id in (1,3,5))) v1,
    (select listagg(col2,',') within group (order by id)||'.' from (select distinct col2, min(id) over (partition by col2 order by id) id from yourtable where id in (1,3,5))) v2,
    (select listagg(col3,',') within group (order by id)||'.' from (select distinct col3, min(id) over (partition by col3 order by id) id from yourtable where id in (1,3,5))) v3,
    (select listagg(col4,',') within group (order by id)||'.' from (select distinct col4, min(id) over (partition by col4 order by id) id from yourtable where id in (1,3,5))) v4,
    (select listagg(col5,',') within group (order by id)||'.' from (select distinct col5, min(id) over (partition by col5 order by id) id from yourtable where id in (1,3,5))) v5,
    (select listagg(col6,',') within group (order by id)||'.' from (select distinct col6, min(id) over (partition by col6 order by id) id from yourtable where id in (1,3,5))) v6,
    (select listagg(col7,',') within group (order by id)||'.' from (select distinct col7, min(id) over (partition by col7 order by id) id from yourtable where id in (1,3,5))) v7
    from dual;Output with 11.2 is:
    V1      V2      V3      V4      V5      V6      V7
    A,N.     N,A.     B,A.     C,N.     N,B.     D,C,N.     N,D,C.@ranit B: You missed, that the OP said that only rows 1,3 and 5 shall be used.
    Edited by: hm on 01.10.2012 23:09

Maybe you are looking for

  • Multi-room DVR not deleting recording after it was watched from another room.

    DVR records and deletes any program fine - as long as it was watched from the DVR. I try and delete a recording that was watched from another box and it errors with a message similar to "recording is being watched from another box." I have to wait ab

  • Missing text after pdf export.

    I am having problems exporting to PDF from Publisher 2007. I am using Adobe professional 8, Publisher 2007 on Windows Vista 64. The files are created and printed to PDF. When I take a look at the PDF there are blocks of text missing. If I re-export t

  • Displaying a vector in jsp

    I'm returning a vector, but I'm having trouble displaying it. The vector will contain a group of users, each containing FirstName, LastName and EmailAddress. I've the servlet working, but the I'm having trouble repeating the vector. <!doctype html pu

  • CS6 Big Problem

    Why is CS6 shrinking my document when printing to a custom page size? No page scaling is selected in the driver or the print dialogue box. I'm working on a mac.

  • Large Downloads

    I am starting to think I have a faulty MacBook. Whenever I try to download something around 1 gig or higher the download gets stuck. I've tried downloading the free version of Xcode, gets stuck at 141 mb. Bought the paid version from the app store in