How to apply Filter condition for a specific column but not to the report?

Hi,
I am having a issue in applying a filter condition to one of the column.
I have a schema with one fact table and around 10 dimension tables. My requirement is to bring a count on the fact table with related to some other columns from the dimension tables.
Lets consider a scenario with tables like Sales (Fact), Region (Dimension), Year(Dimension), Sale Type (Dimension).
Now my requirement is to bring out the fields
City(Region) --City                                   
Year -- Year
Sales Count(Sales table) ---Count of all sales from the fact table
Sales Count(Sales table) -- Count of all sales from the fact table where sales type is 'CASH'
Here my issue is how do I apply the filter condition of Sales Type='CASH' only on one of the Sales Count column which is from the fact table. I want the filter condition to be imposed only for the fourth column.
Can anyone let me know how to achieve this?
Thanks

This is quite simpe. Edit the column formula for the 4th column and put something like this. I am doing this from memory so the syntax might need checking:
Case When "Dimension Table"."Sales Type"='CASH' Then "Fact Table"."Measure" Else Null End
You could also consider making this a permanent addition to your RPD if this measure will be used again and again. You would add a new logical column and use the expression builder to arrive at the same result.

Similar Messages

  • Hi how to apply Chronological sort for a month column?

    Hi All,
    I am struck with how to apply Chronological sort for a month column that contains values like January, February, March, April, May, June.... December. If we apply normal sorting then we can arrange the column values either in ascending order or descending order. But i want the column values to be in this format like jan, feb, mar,apr....dec. Is it possible???
    If this is possible then pls tell me the way in a step wise manner for my better understanding..
    Thanks in Advance
    Thenmozhi

    Hi Deva,
    I tried with the below formula :
    CASE WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='January' THEN 1 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='February' THEN 2 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='March' THEN 3 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='April' THEN 4 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='May' THEN 5 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='June' THEN 6 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='July' THEN 7 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='August' THEN 8 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='September' THEN 9 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='October' THEN 10 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='November' THEN 11 WHEN
    "Order Booked Date Calendar"."Full Month Name (Order Booked)"='December' THEN 12 ELSE '' END
    But it is showing the error like this:
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 604, message: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 8 ORA-00932: inconsistent datatypes: expected NUMBER got CHAR at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    What it is problem? Please help me...
    Thanks

  • How to use time capsule for wireless back-up but not internet?

    Hello,
    I have a tower and recently a laptop at work. The tower is connected to our local network with an ethernet cable and the laptop with wireless. So, the internet connection is fine for both.
    I was hoping to use my time capsule to do time machine backups on my laptop. Do you have any advice on how to configure this? I do not want to use the time capsule to extend my Internet, as I believe my work I.T. would prefer to handle all access to their  network.
    Perhaps there is some documentation about doing this that you could point me to? I have not been able to find it.
    Thank you for your help.

    Your original question was How to use Time Capsule for wireless back-up but not Internet?
    There is no reason for you to connect the tower....or anything else...using Ethernet if your goal remains that same as you stated.
    If you are asking if you can backup the Tower using Ethernet, and not wireless, then you can connect the tower to one of the LAN <-> ports on the Time Capsule....not the WAN port.
    Yes, it appears to work without plugging into my tower.
    Correct, it will work.
    I just have to select the network that it created. Of course, I have no access to the Internet while this is happening and it can not auto backup, unless I am on that wireless signal.
    As I stated, that is the downside to trying to back up without an Internet connection.  You have to establish another network...and backup over that network.
    If you are asking if you can stay connected to the work network while also backing up to your non-Internet "private" network, that is not possible.

  • How to restrict special characters for a specific column

    Dear gurus,
    i have a table emp with a field field_1
    in this particular field_1 is an address column where data can be like '12 st first floor' but suppose mistakenly user has entered the data as '12 st first floor & ' it should be restricted (not using trigger but can this be possible by using constraints )so for this how can we restrict the special characters not to get entered into the column.
    regards,
    friend

    Another way of doing it.
    drop table test_table;
    create table test_table (col varchar2(50));
    alter table test_table add constraint chk_address check (NOT regexp_like(col, '[[:punct:]]+'));
    insert into test_table
    (select  'some text' col from dual);
    1 rows inserted.
    insert into test_table
    (select  'some text!' col from dual);
    Error starting at line 20 in command:
    insert into test_table
    (select  'some text!' col from dual)
    Error report:
    SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
    02290. 00000 -  "check constraint (%s.%s) violated"
    *Cause:    The values being inserted do not satisfy the named check
    *Action:   do not insert values that violate the constraint.
    insert into test_table
    (select  'some text House#32' col from dual);
    Error starting at line 23 in command:
    insert into test_table
    (select  'some text House#32' col from dual)
    Error report:
    SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
    02290. 00000 -  "check constraint (%s.%s) violated"
    *Cause:    The values being inserted do not satisfy the named check
    *Action:   do not insert values that violate the constraint.
    insert into test_table
    (select  'some text
    (with new line)' col from dual);
    Error starting at line 26 in command:
    insert into test_table
    (select  'some text
    (with new line)' col from dual)
    Error report:
    SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
    02290. 00000 -  "check constraint (%s.%s) violated"
    *Cause:    The values being inserted do not satisfy the named check

  • How to manage apple id for kids? I can not change the birthdate

    I can not add a birthdate in my kids apple ID, it does not allow me to enter it to 12 years, I need it to do it for IOS8 family.  How can I do it?

    Hi Guys,
    I have the same issue, and the answer above doesn't really help.
    I set up an iCloud account for my six year old daughter some time ago, for which I used my birthdate in order to be able to create the account. This has worked fine and still does.
    I now want to add my daughters account to the new family sharing feature of iOS8, which I want add as a child account. Unfortunately, due to the incorrect birthdate, the account has been added as an adult account.
    I have attempted to change the birthdate on my daughters account to the correct age, but this isn't allowed for some reason.
    I appreciate that I could set my daughter up with a new iCloud child account as detailed in the above post, however I want her to keep the same email address and for her to not lose the progress she has made in games like Clash of Clans.
    Is there a way I can convert my daughters account to a child account?
    Cheers
    Stu

  • How to apply Date condition for each month in 12 month period to my SQL query

    I am trying to retrieve all Outstanding Problem tickets in my Trendline SSRS report.
    I need to pull the OpenDate <= Last day of last month And CloseDate >= 1st day of current month
    for each month in the Last 12 months. How do I accomplish this in my query?
    I must also need to pull the oustanding tickets for the next 11 months in the same query
    where it will automatically pull the outstanding tickets for when a new month comes
    in out of the 12 month period?
    Here's a sample of my query to pull July 2013 Outstanding Problem tickets:
    Select OpenDate, CloseDate, Ref_Num, Type, status
    From Call_Req
    Where OpenDate <= '2013-07-31 00:00:00' And CloseDate >= '2013-08-01 00:00:00'
    And Type = 'P'
    My Results:
    OpenDate
    CloseDate
    Ref_Num
    Type
    status
    6/13/2013 7:41
    8/26/2013 12:41
    P1726456FY13
    P
    CL
    6/13/2013 8:17
    8/23/2013 12:31
    P1726612FY13
    P
    CL
    6/13/2013 10:17
    9/6/2013 16:54
    P1727352FY13
    P
    CL
    7/12/2013 10:46
    9/6/2013 10:23
    P1812568FY13
    P
    CL
    7/18/2013 10:17
    9/6/2013 8:53
    P1830452FY13
    P
    CL
    7/29/2013 15:54
    9/6/2013 16:16
    P1862906FY13
    P
    CL
    5/17/2013 20:51
    8/22/2013 9:09
    P1653380FY13
    P
    CL
    5/30/2013 13:29
    8/26/2013 7:33
    P1685693FY13
    P
    CL
    7/15/2013 14:14
    9/7/2013 9:42
    P1818874FY13
    P
    CL
    6/7/2013 15:49
    9/6/2013 16:46
    P1712265FY13
    P
    CL
    7/18/2013 10:25
    9/7/2013 9:18
    P1830516FY13
    P
    CL
    7/24/2013 16:30
    8/12/2013 18:26
    P1849909FY13
    P
    CL
    Talitha Davis

    Would this Work?
    DECLARE @now DATE = GETDATE();
    WITH months(lvl, daydate)
    AS (
    SELECT
    1,
    @now
    UNION ALL
    SELECT
    lvl + 1,
    DATEADD(MONTH, -1, daydate)
    FROM months
    WHERE lvl < 12
    ), dateranges(period, opendate, closedate)
    AS (
    SELECT
    CAST(YEAR(daydate) AS CHAR(4))
    + '-'
    + RIGHT('0' + CAST(MONTH(daydate) AS varCHAR(2)), 2),
    DATEADD(DAY, 0-DAY(daydate), daydate),
    DATEADD(DAY, 1-DAY(daydate), daydate)
    FROM months
    SELECT
    b.period,
    a.OpenDate,
    a.CloseDate,
    a.Ref_Num,
    a.Type,
    a.status
    From Call_Req a
    INNER JOIN dateranges b
    ON
    a.OpenDate <= b.opendate
    AND
    a.CloseDate >= b.closedate
    WHERE Type = 'P';
    Microsoft Certified Trainer & MVP on SQL Server
    Please "Propose as Answer" if you got an answer on your question, and vote for it as helpful to help other user's find a solution on a similar question quicker.

  • I have too many Audiobooks on my Laptop and I need the storage space, how to go about removing them from my computer but not losing the stories

    I need to open up some more "storage" space on my laptop... My Audio books are taking up a lot, so I'd like to take them off my laptop by still have them for another listen.  How do I do this?

    Move the entire iTunes library to an external drive, launch iTunes with the Option key held down, choose that library, and back it up to a second external drive.
    (125607)

  • How to apply sap license for Sap Netweaver AS Java

    Hello guys,
    May i know how to apply sap license for SAP Netweaver AS Java?  Appreciate the reply, thank you
    regards,
    wei how

    Hi Lee,
    check below link:
    http://help.sap.com/saphelp_nwce10/helpdata/en/9f/5e533e5ff4d064e10000000a114084/content.htm
    Thanks
    sunny

  • How do I delete an app from my phone but not the computer? Is there a way to deactivate it so it doesn't add it back when it syncs?

    How do I delete and app from my phone but not from the computer? Is there a way to do this so it doesn't add it back in when it syncs?

    In iTunes under the Apps tab for the iPhone device just uncheck any app you don't want synced to the phone. When you next sync the app will be removed from the phone but remain in the iTunes library.

  • Value in KEAW but not in S_ALR report for a particular account

    Hello,
    Find value in CO in KEAW for a particular account but not in S_ALR_87013542 report . The account belongs to Cost of sales category .
    Can someone please inform the reason for this posting not appearing in S_ALR but in KEAW .
    With regards,
    Mrinal

    Derek,
    Please read the following from Anton Nielsen...
    http://c2anton.blogspot.com/2008/12/oracle-application-express-apex-three.html
    Let us know if you have questions after.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • How to disable BOP rescheduling for one specific location?

    Hi Experts,
       We are now processing BOP with rescheduling for request with conditions for all locations. But we would like to separate one location.  How can we disable the BOP rescheduling for that specific location? Is there a customizing setting to maintain that location list?
       Thanks a lot
    best regards,
    Wenyan

    Dear Wenyan,
    in standard you can only exclude locations from BOP while filtering, in the filter variant.
    Regards,
    Tibor

  • How can i maintain conditions for vendor sub-ranges

    Hi All,
    How can i maintain conditions for vendor sub-ranges. These conditions apply to all materials from vendor's sub-range.
    Eg: vendor X has the two subranges R1 & R2. I want to maintain separate conditions for R1 & R2. When ever i created PO with ref to particular subrange that Vendor conditions has to be appeared.
    How can i achieve this?
    Could u pls suggest?
    Thanks & Regards
    Anilkumar Dalai

    Hi,
    First Create a Condition Table with field "Vendor sub-range" in M/03
    Then create an Access Sequence using this Condition Table in M/07
    Then assign this Access Sequence in the Gross Price Condition Type in M/06
    Then assign this Condition type in Calculation Schema in M/08
    Then maintain condition record for this condition type in MEK1
    And then select the appropriate VSR Code in ME21N and check the Pricing.

  • Can't find FILTER CONDITION for filters or Function_Name for Functions

    In the Data Warehouse 11gr1 views all_iv_xform...
    I can't seem to find the Filter Conditions for filters and function name for functions that are called.
    I have looked at the other views in the documentation for the API's but can't seem to find this information.
    Any body have any ideas where this information is?
    thanks
    greG

    select map_component_id, position, source_parameter_name
    from ALL_IV_XFORM_MAP_PARAMETERS
    where map_component_id in (
    SELECT map_component_id
    FROM ALL_IV_XFORM_MAP_COMPONENTS
    WHERE MAP_ID IN (
    select MAP_ID
    from ALL_IV_XFORM_MAPS
    where MAP_NAME = :p_map_name
    AND OPERATOR_TYPE = 'Filter'
    Using map_component_id and position from above query you can see your filter condition defined in property_value:
    select map_component_name, property_name, property_value
    from ALL_IV_XFORM_MAP_PROPERTIES
    where map_component_id = :p_comp_id;

  • How to create greater_or_equal condition for file_io storage

    Dear experts,
    Please tell me the how to create greater_or_equal condition for query in file_io as RationalOperatorType.GREATER_OR_EQUAL is not supported for file_IO storage.
    thanks n regards,
    Kapoorchand.

    Hi,
    not sure if I got you correctly, but in
    com.sap.ip.me.api.persist.query.RelationalOperatorType
    There is no condition available that you are looking for. Why do you not work with
    public interface Condition
    Represents a condition for a query. This can either be a single condition, as FIELD = VALUE and / or a composite condition, as ( ( FIELD1 = VALUE1 OR FIELD2 = VALUE2 ) AND FIELDE 3 <> VALUE3 ).
    Hope this helps!
    Regards,
    Oliver

  • How to create a folder for a specific e-mail account?

    How to create a folder for a specific e-mail account?
    I'm using a POP e-mail account and I would like to create folders / sub-folders... how can I do this?

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

Maybe you are looking for