Not exists / union - two dimensions nothing in the fact folder, possible???

What I am trying to do is (in functional terms) produce an invoices on hold report.
This has two distinct characteristics - some invoices are coding but on hold (easy - see first part of the SQL below), but some invoices have no coding, nothing in the FACT folder and I need to show two dimension folders which currently only join via the FACT folder - is this possible??
equivalent SQL =>
select supp.supplier_name, inv.invoice_number, inv.invoice_amount, dis.amount, code.segment1||'/||code.segment2
from     AP_INVOICES_MV inv
,          ap_suppliers_mv supp
,       ap_holds_mv hold
,      AP_INVOICE_DISTRIBUTIONS dis
,     gl_coding code
where inv.invoice_key = hold.invoice_key
and    inv.supplier_key = supp.supplier_key
and  inv.invoice_id = dis.invoice_id
and   dis.code_key = code.code_key
and   hold.holds <> 'No Holds'
union
select supp.supplier_name, inv.invoice_number, inv.invoice_amount, 0 amount, 'XXXXX/XXXX' gl_code
from     AP_INVOICES_MV inv
,          ap_suppliers_mv supp
,       ap_holds_mv hold
where inv.invoice_key = hold.invoice_key
and    inv.supplier_key = supp.supplier_key
and   hold.holds <> 'No Holds'
and   not exists
(select 'x'
from    ap_invoice_distributions dis
where dis.invoice_id = inv.invoice_id)
order by 1, 2, 4 ascMy problems are; -
1. is that the second part of the union (not exists section) requires me to join two DIMENSION tables without going via the FACT table is this possible?? (If so how - what JOINS would I need on between the FACT and the DIMENSIONS and would this significantly impede running speed generally)
2. Given that even when writing direct database requests the FROM part of the SQL is the subject area, not the tables, the tool writes the joins for you, how can I write the equivalent of the above??
n.b.
AP_INVOICES_MV - DIMENSION
ap_suppliers_mv - DIMENSION
ap_holds_mv - DIMENSION
gl_coding code - DIMENSION
AP_INVOICE_DISTRIBUTIONS FACT
With the structure following the classic STAR with all folders described in the dimensions equi joining to the FACT folder, BUT some in the invoices dimension will not have corresponding values in the FACT folder (un-coded invoices).
With thanks for your input,
Robert.

Try this app: http://tyorex.com/iWorkConverter
Batch convert Pages files to doc and pdf.

Similar Messages

  • Two Filter on Two dimensions without constraining the fact table

    Hi All,
    does anybody know how to avoid the fact constraint when creating a report with two filters on different dimensions?
    I have a big fact table with more than 10 Million rows. In the starmodel the is the dimension customer and products. I create a filter on the customer atrribute "Status" and choose the value "Active". Now I add the column "Product Type" from the dimension "Product" to the filter section. When I want to choose a value OBIEE executes a select statement within the fact table. So I have to wait very long to select a value. Is there any way to say OBIEE only to select the dimension table without joining the fact table?
    Thank you very much in Advance.
    Regards,
    Stefan

    Hi Stefan,
    Generally queries on the dimensions (across dimesions also) always go through a fact. In case, you would like the queries not be through fact table, but just the dimension tables right away, you can set up a separate subject area for them.
    You can create a separate subject area based on a dummy fact table to get these prompt values.
    Please refer to http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_parameter_prompt_subject_area for more details on this setup.
    Hope this helps.
    Thank you,
    Dhar

  • The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.

    The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.
    We get this error when we try to check the properties of an analysis server using SQL Server Management studio(right click the instance name
    and check properties). We have resolved this issue twice by Stopping the SQL Server analysis service,removing db folders from Analysis Server Data folder and starting the services back on. The db folder that we removed was advised by the BI team.
    The SQL Server Analysis Server is 2012 SP1

    Hi RB_ORIPW,
    The table with name of 'XXX' doesn't exist.
    An error occurred when loading the model(Micorsoft.AnalysisServices)
    If I understanding correctly, you encounter the error randomly, now what you want it that avoid this issue completely, other than stop the services, detele the db filder and restart the services, right?
    The error might be caused by that the data file is corrupted. However, we cannot give you the exact reason that cause this issue. You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Besides, here is fix that describe the similar issue, and it was fixed in Cumulative Update 7 for SQL Server 2012 SP1, please refer to the link below to see the details.
    http://support.microsoft.com/kb/2897263/en-us
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • HT201363 i have forgotten the security code and an e-mail is being sent to an e-mail account which does not exist.  How do i change the e-mail details

    We have forgotten the security code question and each time I request a reset it is being sent to an e-mail addres which does not exist.  How can I change the e-mail address to my current e-mail address.  We have put money onto an ITunes account which is asking for this security question.  This has never happened before. Any assistance would be appreciated.  thank you

    Hello, covey98. 
    Thank you for visiting Apple Support Communities.
    I would recommend reaching out to us via the link below to assist you with this issue.
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • I went to charge my ipod touch lastnight and it would not charge. There was nothing on the screen no life in it.

    I went to charge my ipod touch lastnight and it would not charge. There was nothing on the screen no life in it. Well today i plugged into my laptop and itunes came up saying it is in recovery mode. Im trying to restore it but nothings happening on my ipod got the apple sign on the screen and the bar going across but its emtyand theres nothing loading, itunes also says waiting for ipod. Someone please help  cant live without my ipod,

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I have an ExportPDF subscription under an old account for which the email does not exist anymore and I have forgotten the password.  Therefore I cannot reset the password.  I hav created a new Adobe account so how do I get the subscription for ExportPDF m

    I have an ExportPDF subscription under an old account for which the email does not exist anymore and I have forgotten the password.  Therefore I cannot reset the password.  I have created a new Adobe account so how do I get the subscription for ExportPDF moved to the new account?

    Hi lgmmo,
    I think your best best to get this resolved is to contact Adobe Customer Care. Here's the contact info: Contact Customer Care.
    A quick Chat session should get you fixed up.
    Please let us know if you have additional questions.
    Best,
    Sara

  • I have an "old" Apple ID set up 13 years ago.  Apple has now gone to using email address as the apple ID.  I have apps to update and they ask for old ID.  it does not exist.  How can I get the ID on the app changed to the new apple ID

    I set up an apple id many years ago when itunes was established.  Within the past year or so, Apple has changed to using email address as user id.  My problem is that I have many applications that I can not update due to the fact that it is asking for the password of the old ID.  It does not exist anymore.  Any ideas on how to get the new apple id associated with the application without deleting the application.  Several of these apps I purchased.

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Firefox/3.6.10 shows message whenever I click on an icon needing Internet access, saying 'Firefox couldn't install this item because "install rdf" (provided by the item) is not well-formed or does not exist' and advising me to contact the author - ???

    Whenever access to the Internet is needed, clicking on any icon or link (including the Firefox icon) results in a delay of around 20 secs., followed by the appearance of the error message, headed "Malformed File". The message reads 'Firefox couldn't install this item because "install rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.'
    Clicking OK or closing the box leads to a further delay of about 20 secs. after which the required action takes place! Of course, it could be said that it's really only a delay, so I should just get used to it, but it's still a malfunction, it's a pain in the neck or another region, and I really would like to cure it. Any suggestions - please????

    https://support.mozilla.com/en-US/questions/756907

  • Target 'install' does not exist in this project ",this is the error i get..

    i get this error when i try to install ,with the command : ant install,
    a webservice on tomcat, and when i type
    ant install it gives me this error:
    " Target 'install' does not exist in this project "
    i have a file in the same directory with the build.xml named install.xml
    and when i type ant build there is no error but by tiping ant install the error above occurs!

    ant install will execute the target install. As you did not define the build file, the standard one is taken: build.xml.
    These options could be of interest for you:
      -buildfile <file>      use given buildfile
        -file    <file>              ''
        -f       <file>              ''

  • Querying Levels in Dimensions joined to the Facts

    I created a location dimension using the standard levels, i.e., region > subregion > country > state > location_id. I then attached it to a sales fact that had the location_id as the key, but when I tried to query the cube by it's levels the only level I see is the location_id level which is at the state. None of the other levels appear or are queryable when I do something like:
    SELECT * FROM vw_SALES_CUBE A, vw_LOCATION_DIM B
    WHERE A.LOCATION_DIM = B.DIM_KEY
    AND A.LEVEL = 'COUNTRY'
    Only one level comes up although in the location_dim all the other levels exist the join does not carry them over. The data for the levels appears in the COUNTRY_LONG_DESCRIP column and not in the LEVEL column.
    What am I doing wrong. Are there other objects I need to create like an MV.
    jrod

    I was thinking that is if I created a cube such as the one described in the thread and that I did a query along the LEVEL_NAME that the cube would fetch the data without the need for me to create say MV's aggregateing the data. For example,
    /* The following is a basic query against a fact table */
    SELECT T.CALENDAR_YEAR_DSC TIME, SUM(F.SALES) SALES
    FROM TIME_DIM T, UNITS_FACT F
    WHERE T.CALENDAR_YEAR_DSC IN ('2005', '2006')
    AND T.MONTH_ID = F.MONTH_ID
    GROUP BY T.CALENDAR_YEAR_DSC;
    /* The next query fetches the exact same results from a cube using filters: */
    SELECT T.LONG_DESCRIPTION TIME, F.SALES SALES
    FROM TIME_CALENDAR_VIEW T,
    PRODUCT_PRIMARY_VIEW P,
    CUSTOMER_SHIPMENTS_VIEW CU,
    CHANNEL_PRIMARY_VIEW CH,
    UNITS_CUBE_VIEW F
    /* Apply filters to every dimension */
    WHERE T.LONG_DESCRIPTION IN ('2005', '2006')
    AND P.LEVEL_NAME = 'TOTAL'
    AND CU.LEVEL_NAME = 'TOTAL'
    AND CH.LEVEL_NAME = 'TOTAL'
    /* Join dimension views to cube view */
    AND T.DIM_KEY = F.TIME
    AND P.DIM_KEY = F.PRODUCT
    AND CU.DIM_KEY = F.CUSTOMER
    AND CH.DIM_KEY = F.CHANNEL
    ORDER BY TIME;
    In these two queries I fetch the same grain. So why is it that the cube has not precomputed these factors. What do I need to do this?

  • Downloads of updates not saving, no prompts or icons in the Application folder-how do I ensure updates are saved?

    I am following the instructions to download v 6 but receive no prompt to move the Firefox icon to the applications folder. I have done that anyway, but it's not saving-the latest version is July 11. I then get reminders to update all the time-what am I doing wrong?
    I am working on a Mac laptop

    A lot of people panic when they see Photoshop displaying differently from other software. But that's normal and expected. Here's what happens:
    1. Photoshop is color managed and performs a document profile > monitor profile conversion when it displays. So whatever the document profile is, Photoshop will display correctly - unless you have CM policies set to "off" (...!)
    2. Other applications, including many web browsers, aren't color managed and will just send the file numbers directly to the display. This distinction is extremely important, because there will be a slight difference. Again, that's normal. Photoshop is right and the other apps are wrong.
    3. Without color management, it all hangs on how your monitor displays color. Most monitors are so close to sRGB that any sRGB file will display roughly correctly. This is why sRGB is the de facto web standard: it can live without color management. And that's why you should always convert web material to sRGB. Yes, that's the Edit > Convert to Profile option. You can also use Save For Web to do this if you check the appropriate boxes.

  • I have purchased song from iTunes that I have in my iPad.  I would like to transfer them onto my iPod. I use to have a laptop and could do it but do not have it any longer due to the fact I now have a iPad.  Please help

    I do I transfer songs for my purchased songs from iTunes into my iPad.  I no longer have a laptop but have a iPad I I see my purchased songs in the IPad but do not know how to transfer them to the iPod.  Please help.

    If you have an iPod Touch running iOS 4.3.3 or later, you can download the songs in the purchased tab of iTunes on the iPod.
    http://support.apple.com/kb/ht2519

  • Apple is sending a password reset to an email address that does not exist. How do I update the email? Can't find it in my account.

    Why is Apple sending an email to an address I can't find in my account??

    Agro1 wrote:
    Why is Apple sending an email to an address I can't find in my account??
    Apple will not send you password reset requests in an email. It is likely a phishing email trying to get your personal or security information. Ignore the request and send the email to trash. Do not provide any personal or security information in response to the email. Do not click on any links in the email.

  • Why does my volume control on my iPod touch only work when i have Earbuds or Headphones or a speaker connected to the headphone jack, and not also when there is nothing in the jack?

    I can't adjust the volume of the iPod Touch when it has nothing plugged into the headphones jack, but i can adjust it when i have earbuds or headphones or a speaker ;plugged into the iPod Touch

    Try cleaning out/blowing out the headphone jack. Insert/remove the the headphone plug a dozen times or so.
    Try the following to rule out a software problem.:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store since you likely have a hardware problem. Could be a bad headphone jack.
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • Problems synching iPhone 3Gs with Address Book and Calender

    I have an iPhone 3Gs and have begun to notice that information is not being synched between Calender and the phone and Address Book and the phone. I now also have duplicate contacts for all contacts that were in my orginal iPhone before I upgraded. I

  • BPM problem with correlation/loop

    Hello, I have created a scenario in which I am sending file(using flat file conversion)  to BPM to do a collect and send out to external system.  I have set up a loop which should exit out when counter ="2."  Within the loop, I have my receive step,

  • HT4356 What is the best printer for the iPad 2 with AirPrint?

    What HP printer has Airprint instaled?

  • Stream video through web page..

    I am fresh in JMF programming, recently i'm learning video streaming over the Internet (on demand broadcast). i need to be able to putting the video on my web pages, and JMF client as media player. Can someone help me? is JMF has web browser plug in?

  • Is UBL standard supported by XI.

    Hello, Currently , am working on a senario in which a webservice is getting called. Webservice is build using UBL xml standards. And while importing the WSDL of webservice and other referenced UBL xsd's, not able get the message deifinitons. Let me k