Query on filter on fact column

Query on filter on fact column
IN OBIA AR Transactions subject Area
the fact is filtered on (RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='UNEARN') in the Informatica ETL
(RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='UNEARN')
I need to bring in the Tax information  within the subject area from the table above and extend the Filter to include 'Tax'
(RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='UNEARN')
and
(RA_CUST_TRX_LINE_GL_DIST_ALL.ACCOUNT_CLASS='TAX')- which comes from Account_class
will this amendment affect the existing subject area and  in turn produce higher report numbers
secondly
if i would  like to understand how i would try and work out the report
AR amount split by tax
Invoice Number Account class AR Amount
001  REV  100
001  Tax  20
to produce the above report i have to remove the filter on the ETL
but make sure that when  the user DOES NOT hits the Column Account class in analysis then by default put a filter on the fact column source which keeps only 'REV' or 'UNEARN'
thanks

The answer lies in GL revenue analysis subject area 

Similar Messages

  • Filter on Fact columns at report level- obiee 11g

    Hello,
    The error I am getting in my report is : Incorrectly defined logical table source (for fact table SUMM) does not contain mapping for [LEDGERFACT.CD, LEDGERFACT.YEARID].
    The Model(Physical and BMM Layer) is as follows: DIM_LF_B is joined to 2 fact tables LEDGERFACT and SUMMARY
    DIM_RPT_PARAM -> DIM_LF_B -> LEDGERFACT
    DIM_RPT_PARAM -> DIM_LF_B -> SUMMARY
    Note that the aggregation is not set for any of the Fact columns. (I am aware that all measures have to be set some aggregation type , but Client restrictions as not to edit the rpd :( )
    Now on the report front, i have pulled following columns:
    >> Col name: Description ||| Forumla: DIM_RPT_PARAM.ITEM_DESC
    >> Col name: Actual Amt ||| Formula: case when SUMMARY.MONTHID=3 and SUMMARY.YEARID=2012 then sum(SUMM.AMT_1) else 0 end
    >> Col name: Plan Amt ||| Formula: case when LEDGERFACT.YEARID=2012 and LEDGERFACT.CD=300 then sum(LEDGERFACT.AMT_1) else 0 end
    I am not able to understand as to why the BI server is throwing the error.
    I tried removing the case condition and just applying the sum(as below), and the report comes up.
    Col name: Description ||| Forumla: DIM_RPT_PARAM.ITEM_DESC
    Col name: Actual Amt ||| Formula: sum(SUMM.AMT_1)
    Col name: Plan Amt ||| Formula: sum(LEDGERFACT.AMT_1) Also for the following combination the report works
    1)
    >> Col name: Description ||| Forumla: DIM_RPT_PARAM.ITEM_DESC
    >> Col name: Actual Amt ||| Formula: sum(SUMM.AMT_1)
    >> Col name: Plan Amt ||| Formula: case when LEDGERFACT.YEARID=2012 and LEDGERFACT.CD=300 then sum(LEDGERFACT.AMT_1) else 0 end
    2)
    >> Col name: Description ||| Forumla: DIM_RPT_PARAM.ITEM_DESC
    >> Col name: Actual Amt ||| Formula: case when SUMMARY.MONTHID=3 and SUMMARY.YEARID=2012 then sum(SUMM.AMT_1) else 0 end
    >> Col name: Plan Amt ||| Formula: sum(LEDGERFACT.AMT_1)
    Any help appreciated.
    Thnks,
    Shruti
    Edited by: 970002 on Mar 28, 2013 7:18 AM

    Hi Shruthi,
    To be clear you have one table 'DIM_LF_B' and its separated out as FACT and DIM in BMM layer with respective formulas ? If yes check this http://www.varanasisaichand.com/2012/04/fact-and-dimension-from-single-source.html
    let me know if it is different
    Thanks,
    Saichand

  • Is it possible to view the content of multiple lists(located in multiple webs) in one ListViewWebpart? And how can I filter a multivalue column?

    Is it possible to view the content of multiple lists, that are located in different webs as well, in just one ListViewWebpart? Could I maybe change the query programmatically so that it get's the content this way?
    I know that I could use the Content Query Webpart instead - actually I have been using that so far, but the problem is, that it brings no standard Sharepoint functionality for lists with it... I had to write the xsl style sheet, there are no dynamic filters
    that the user could set, there are no default list operations the user could use.
    The ListViewWepart has all of these, but it only shows the content of one list...
    And my second problem:
    One column can contain multiple values (like a column that contains multiple users or user groups that are related to one entry). I can filter every other column with the standard filters, but not the column with multiple values in it. Is it possible to
    activate that or maybe add this feature programmatically?

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • How to create Implicit Fact column ?and how to use it ?

    Hi all,
    How to create Implicit Fact column ?
    and how to use it ?
    Thanks in advance

    When you create a request with only dimension columns, the Oracle BI engine has to choose a fact table to join the dimensions to each other. If you have multiple fact tables in your BMM layer, the Oracle BI engine will use the most economical fact table, depending on the number of dimensions of the fact table.
    In some cases you do not want to use this fact table, but you want to force the Oracle BI engine to use the fact table you want.
    In that case you should create a fact (or select an existing fact) of the fact table you want to use for the dimension only query. In the presentation catalog of the subject area you should select this fact as the implicit fact. This fact will always be used in the query, but it won't be visible in your report. An example of an implicit fact is the count of the primary key (id) of the fact table.

  • Filtering based on Fact Columns makes the result different?

    Dear All,
    I have an analysis report for Publisher, there are several columns, for example,
    Col A = ROUND(Col B * Col C / Col D, 0) Whereas Col B, Col C and Col D are integers
    Col E = ROUND(Col F * Col C / Col D, 0) Whereas Col F, Col C and Col D are integers
    Filter: Col G is not null, Whereas Col G is fact column, Integer
    I have the case is that
    Col B = 120, Col C = 4, Col D = 14, Col F = 10
    If Filter is not applied:
    Col A = Round(120 * 4/14, 0) = 34
    Col E = Round (120 * 10/14, 0) = 86
    When Filter is applied,
    Col A = Round (Floor(120  * 4/14), 0) = 34
    Col E = Round(Floor(120 * 10/14), 0) = 85
    C

    If you want to avoid the floor function Use (120*10/14.0)
    If all the values in a division are integers, OBIEE uses a Floor function automatically.
    SO CAST either the numerator or the denominator to DOUBLE and then run your calculations, the floor function will not be applied.

  • Using a Fact Column in Prompt

    Hi,
    I have requirement to use a Fact Column (Eg: Control flag) to be used in the Column Prompt. What is the best way of using it such that query performance will improve. If I use it directly it might have scan through my entire fact table which will have a performance impact.
    Is there a best way to do it?
    Thanks,
    GJ

    Hi GJ,
    The "proper" way to model this in the RPD is to add the column on to a dimension vs. leaving it on the fact table. i.e. the underlying physical fact table becomes a source for both a logical dimension and the logical fact. OBIEE smart enough to sort everything out.
    Having said that - the real performance issue could be because, in a prompt, it would have to scan a potentially huge fact table to get the distinct values of the control flag. If that's the case, then you should either 1) build a real dimension table to make it faster (this would be preferable), or 2) add a bitmap index to the control flag column on the fact table, which would also greatly improve the performance of the "select distinct control flag from fact table" query.
    Hope this helps!
    Scott

  • Implicit Fact column creating problem to the reports.

    Hi Friends,
    I have two reports from same subject area from two different facts F1 & F2.
    I have created one implicit column, as it is unable to judge from which fact it needs to build the query. So, it is genarting query from fact F1.
    I have created one logical column in the fact and marked it as Implict column in presnenation layer.( as we the process)
    But the problem is, for both the reports it is using same implicit column and it is generating the query with only one fact F1.
    It is excluding the other fact F2.
    One report it shoud use Fact1 and other report it should use Fact2.
    PLease hep me in regarding this,
    Thanks & Regards,
    Kalyan J V

    Kallu wrote:
    Hi Friends,
    I have two reports from same subject area from two different facts F1 & F2.
    I have created one implicit column, as it is unable to judge from which fact it needs to build the query. So, it is genarting query from fact F1.
    I have created one logical column in the fact and marked it as Implict column in presnenation layer.( as we the process)
    But the problem is, for both the reports it is using same implicit column and it is generating the query with only one fact F1.
    It is excluding the other fact F2.
    One report it shoud use Fact1 and other report it should use Fact2.
    PLease hep me in regarding this,
    Thanks & Regards,
    Kalyan J VFrom my understanding, implicit fact column's are set a subject area level and not dimension/fact level. So the fact table you have set for implicit fact will be used in both the reports. Why dont you just drag the second fact into the report and hide it, if you are not trying to use the fact 1 that is setup as implicit fact?

  • Implicit Fact Column being ignored

    Hi,
    I have a Business model containing two fact tables with a shared sets of conformed dimensions. Dim1 and Dim2 are both mapped to Fact1 and Fact2.
    When I select attributes from Dim1 and Dim2 (without facts), OBIEE picks Fact2 to pull up the records. Since I want OBIEE to use Fact1, I've setup an Implicit Fact Column using a measure of Fact1.
    After restarting all services, OBIEE still picks Fact2 (probably because it has less -conformed- dimensions). When I check the physical query, the Implict Fact Column is NOT included in the select statement so OBIEE is basically ignoring it.
    Is there any config-setting which influences how OBIEE activates the Implicit Fact Column?
    OBIEE-version = 10.1.3.4.1
    Thanks!

    Well.... not really suggestions... but I did some more google research and came out with some comments...Pls. note that they are not mine comments... just copy/paste from a couple of blogs.
    "This column is generally the *lowest granularity column* of the fact table like Row_wid etc"
    "It all boils down to the granularity of the data present in the fact tables.
    If a fact contains data at a more granular level then always that will be preferred over the other fact.
    The 'Implicit fact column' comes into picture when you want to enforce a fact as the default path when used in a report."
    "For dimension-only queries across multiple dimensions, Oracle BI Server picks the most economical fact table source
    based on t*he number and levels of joined dimensions*."
    Antonio
    BExpert, Brazil

  • Implicit Fact Column - am I thinking about this the right way?

    My exploration of the Implicit Fact Column is below. Let me know if you think this is the intended usage.
    When the BI Server sees a request where one Dimension is being constrained by another, it has to pick a fact table that contains references to these two dimensions. The "Implicit Fact Column", which is set in the Presentation Layer of the RPD is used to guide the BI Server towards one or more Fact tables that can be used to satisfy the request. In the absence of the Implicit Fact Column, I noticed that the BI Server was choosing random fact tables so I went exploring how this feature worked. I set the Implicit Fact column in my Presentation layer and then went looking to see how the queries were generated.
    For my example, my two dimensions are Program and Channel. I want to see the list of Channels available for a Program. Without the Implicit Fact Column, the queries are of the form:
    select distinct T289.CHANNEL_NAME as c1,
    T36001.PROGRAM_NAME as c2
    from
    DIM_PROGRAMS T36001,
    DIM_CHANNELS T289,
    SomeRandomFactTable T41210
    where ( T289.DIM_CHANNEL_KEY = T41210.DIM_CHANNEL_KEY and T36001.DIM_PROGRAM_KEY = T41210.DIM_PROGRAM_KEY )
    order by c1, c2
    The nice part about this is that there is only one set of Program / Channel combinations returned. The downside is that the Fact table that is chosen to resolve the combinations can be any Fact table under the purview of the BI Server. It doesn't even have to be in the same subject area where the Program and Channel were chosen. When I set the Implicit Fact Column, the queries are of the form:
    select distinct T289.CHANNEL_NAME as c1,
    T36001.PROGRAM_NAME as c2,
    T35832.DIM_SITE_KEY /* this is the implicit fact column */
    from
    DIM_PROGRAMS T36001,
    DIM_CHANNELS T289,
    AFactTableMappedToFactColumn T35832
    where ( T289.DIM_CHANNEL_KEY = T35832.DIM_CHANNEL_KEY and T35832.DIM_PROGRAM_KEY = T36001.DIM_PROGRAM_KEY )
    order by c1, c2
    I was happy that I could predict what Fact table was being used, but now the results are wrong as I get a duplicate set of records for every DIM_SITE_KEY / Channel / Program combination. I decided to play a little Algebra trick. Knowing that the DIM_SITE_KEY was a numeric value, I defined the Implicit fact column as DIM_SITE_KEY / DIM_SITE_KEY which will always result in a value of 1. Now I get queries that look like:
    select distinct T289.CHANNEL_NAME as c1,
    T36001.PROGRAM_NAME as c2,
    T35832.DIM_SITE_KEY / nullif( T35832.DIM_SITE_KEY, 0) as c3
    from
    DIM_PROGRAMS T36001,
    DIM_CHANNELS T289,
    AFactTableMappedToFactColumn T35832
    where ( T289.DIM_CHANNEL_KEY = T35832.DIM_CHANNEL_KEY and T35832.DIM_PROGRAM_KEY = T36001.DIM_PROGRAM_KEY )
    order by c1, c2
    Since DIM_SITE_KEY / DIM_SITE_KEY is always equal to 1, I only get one set of Program / Channel combinations. I get the added bonus of knowing which set of Fact tables are going to be used to satisfy the request.

    Perfect Analysis, But one important note is when using implicit fact table, Always select measure( Which has some aggregation) as a implicit fact column. So that will allows the query will eliminate duplicate rows by doing a group by operation.
    Other note is make sure performance is good. When we don't have a good model for fact tables, when the tables contains large set of data, make sure performance is good by doing indexes or caching to load the prompts.
    - Madan

  • Rest query with filter sub-string (contains, not eq)

    Hi,
    how can I do a REST-query with a filter for a string-column which is only a sub-string? I only found EQ, for example $filter=(name EQ 'tom') which compares the whole string.
    But I would like to query records, where a string-column CONTAINS a specific sub-string.
    Thx, Tom

    Hi Tom,
    Do you use it on azure Data Market place? Did you try to add "*" on your query string, like this
    post.
    Also, you could try this tool from this
    thread. Also, for this issue, I suggest you could post it on
    SQL forum for better support.
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Implicit fact columns

    Hi all,
    I have 5 dimensions and 6 fact tables. I have created common fact table which contains all other fact measure columns.
    I have to assign Implicit fact columns in presentation layer.
    Please Guide me which column i have to assign.
    Thanks in advance.

    Hi RR,
    You have 2 or more fact tables and couple of dimensions. And not all the fact tables are joined with all the dimensions.And when you just query the data out of dimension which is not joined to a fact table. It will give you an error like ..Can not navigate to the fact table.
    Matter of fact is : Whenever you query the data just from the dimension it does not just read the data from dimension but it join that dimension with the fact and then get the data from dimension. So to resolve this what you will need an implicit column in presentation catalog so whenever you query data from dimension it goes through the table where you have defined an implicit column.
    Please refer more details.
    http://www.oraclebidwh.com/2011/11/implicit-fact-column-in-obiee/
    http://www.rittmanmead.com/2009/08/oracle-bi-ee-10-1-3-4-1-reporting-on-non-transactional-dimension-values-equivalence-of-outer-joins/ -- this is good.
    Hope this help's
    Thanks
    Satya

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

  • SharePoint 2013 List View with query string filter stops working after editing view from browser

    I have created one list definition in which I have added one list view which will filter data from query string paramater
    So when I am creating list from my list definition, view with query string filter is working fine.
    But when I am modifying view from UI(I am not changing any thing , just opening "Modify View" page and then click on "Save" button), view gets stop working means it's not filtering data based on query string
    Any suggestion what I am missing?
    Below is my list view schema
    <View BaseViewID="11" Type="HTML" TabularView="FALSE" WebPartZoneID="Main" DisplayName="$Resources:OIPLBScoreCard,viewFilterTasksByTarget;" MobileView="True" MobileDefaultView="False" Url="FilteredTasks.aspx" SetupPath="pages\viewpage.aspx" DefaultView="FALSE" ImageUrl="/_layouts/15/images/issuelst.png?rev=23">
    <Toolbar Type="Standard" />
    <ParameterBindings>
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    <ParameterBinding Name="TargetId" Location="QueryString(TargetId)" />
    </ParameterBindings>
    <JSLink>hierarchytaskslist.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <JSLink>clienttemplates.js</JSLink>
    <RowLimit Paged="TRUE">100</RowLimit>
    <ViewFields>
    <FieldRef Name="Body"></FieldRef>
    <FieldRef Name="Title"></FieldRef>
    <FieldRef Name="StartDate"></FieldRef>
    <FieldRef Name="DueDate"></FieldRef>
    </ViewFields>
    <ViewData>
    <FieldRef Name="PercentComplete" Type="StrikeThroughPercentComplete"></FieldRef>
    <FieldRef Name="DueDate" Type="TimelineDueDate"></FieldRef>
    </ViewData>
    <Query>
    <Where>
    <Eq>
    <FieldRef Name="oipscTargetLookup" LookupId="TRUE"/>
    <Value Type="Lookup">{TargetId}</Value>
    </Eq>
    </Where>
    </Query>
    </View>
    I have one lookup field from "Target List" in my source list and I want to filter data based on that lookup field.

    Hi JayJT,
    The Miscellaneous is located in the contact list that you used for the connection.
    So , you need to edit the page, then edit the contact list that you used, in the web part properties of the contact list, you will find Miscellaneous, then expand it and select ‘Server Render’ .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Query level filter not working in Webi report

    Hi All,
    I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
    Can anyone suggest me why problem is coming?
    Regards,

    Hi,
    Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
    1. Select the universe in the list of universes to open the Query Panel.
    2. Drag the Year object to the Result Objects pane.
    3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
    4. Click Combined Query.
    The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
    5. Click on the second query and remove the Year and Number of Guests objects.
    6. Drag the Reservation Year object to the Result Objects pane.
    7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
    8. Click Run Query.
    Best Regards
    Naveen

  • Filter Function in Column Formula is not working properly

    Hi,
    I am using Filter Function in Column formula tab in Answers to calculate the Total sum from the start of the Fiscal month to the Month selected from the Prompt.
    My requirement is I have total sales column. Now I need to calculate TYYTD kind of thing for which I cant use the Time sereis due to my report constraint.
    Instead of that I am using this Filter function on TYYTD column where i am giving the filter as start of the Fiscal month to the month selected from the Prompt.
    For example if I select May month from the Prompt then this TYYTD column should give me SUM(Total Sales) between Feb and May for which I am using the Filter Function. But it giving me only May sales whcih is same as Total Sales column.
    Can anyone throw some light on this as this is very important for us or any alternate solution other than Time sereis measures.
    Did anyone got this kind of issue with Filter Function?
    Regards,
    Azad

    Ok...here's the steps to fix this as efficiently as possible.  I have a whole bunch of mailboxes under "On My Mac" and they have a bunch of mailboxes nested in them.  I get my messages into Apple Mail via IMAP.  (I don't know if this matters.)  The steps below assume you have a similar setup.
    1.  Hold the Option key down and click the dropdown arrow next to each mailbox that has one.  This will cause all nested mailboxes below it to appear.
    2.  Go to the top of the list of mailboxes under "On My Mac" and highlight the first mailbox.  Then hold the Shift key down and highlight the last mailbox in the list.  This will cause all of the mailboxes and nested mailboxes to be highlighted.
    3.  From the menu, select "Mailbox --> Rebuild" and the rebuild process will start.
    4.  Watch the top of the mail screen to see the message count change as the mailboxes are being rebuilt.  Wait until the activity stops before doing the next step.
    5.  As the mailboxes were rebuilt, many messages were reset as "Unread" even though every message was previously "Read."  Make sure the mailboxes you want to affect are still highlighted.  Right-click and select "Mark All Messages Read."
    That fixed the problem for me.

Maybe you are looking for

  • TS3694 how do i resolve error 1015 please

    How do i resolve error code 1015 please

  • Forms 6i error FRM-41351 Cannot navigate out of current form

    Does anybody know why this error occurs? I have an ordinary Forms 6i module, running in 2-tier (client-server) mode. When I try to do an EXIT_FORM, I get an error: "FRM-41351: Cannot navigate out of current form" My form is called from a top-level fo

  • HR Form do not select any data from specific Period

    Hi All I am facing issues on the HR FORMS for Brazil related to the Remunaration Statement When I try to select any employee from a specific period (before April 2012), the system does not select any data. From April 2012 until the current period and

  • C and MIDI help

    Just a quick question: I would like to experiment with MIDI programming, but, in order to do that, I need to write the midi code in normal, non-objective C (?). I know this code as well, but I don't understand how it works with a cocoa app. Does it r

  • New Apple Keyboards and G5

    I have just purchased one of the new auminium keyboards. The special features ie for Dashboard expose - sound etc. Apple support told me these new features only supported on the new iMacs. This is not stated in apple's marketing material for these ke