Multiple charts from one query

I have a database containing demographic information for
visitors to various sites. I would like to create a separate chart
for each site summarizing its demographics. My SQL statement looks
something like this:
SELECT SITE, RACE, LANGUAGE, GENDER FROM VISITS GROUP BY
SITE
Can this be used to generate a series of charts, one for each
site? About the only thing I have come up with is a loop using
cfoutput's group option and cfchartdata to get individual data
points and I don't think even that would work since I'm not sure
how I can construct a loop to accomplish this. Thought I'd see if
there was an alternative that I overlooked before I threw myself
into it..

How about Query of Queries...
-- Get Main Query: queryMain
-- Prepare first Chart for Site A: querySiteA
SELECT from queryMain where Site = ''siteA'
-- Show Chart with: querySiteA
-- Prepare first Chart for Site B: querySiteB
SELECT from queryMain where Site = ''siteB'
-- Show Chart with: querySiteB
Query of Queries is great for this kind of thing, no need to
go back to the DB, you have the data, now just further filter it
for your needs...

Similar Messages

  • Multiple charts with one Query - how to?

    Hi Experts,
    I  wanted to display mulitple charts from the one query in Bex analyzer or WAD. Each chart should be constructed from the data of each column returned from the query. So if the no. of columns in the query is 5  then there should be 5 charts generated. No of columns will be variable. How to achieve it ?? Any idea?
    All kinds of suggestions are welcome.
    Thanks
    Regards
    AB

    Hi Priya,
    Thanks for your response. Actually the infomation is of technical in nature. Its about processes and the parts. Rows represents  parts and columns represent processes. The processes are variable and can be added any time in query.Based on the Query there should be automation of charts. So there is an analysis per process/parts with a single chart. So if the processes are increasing , the automation should also add a chart....thats what the requirement says. So if I have 10 process that I shd get 10 charts and if 15 afterwards then 15....
    I hope now its clear to you.Do suggest if u have any idea.
    Regards
    Atul

  • Update multiple UDF from one query generator

    Hi All,
    I have Form1 with multiple UDF1 which have been key in by users
    And another Form2 with multiple UDF2 which exactly same with Form1 UDF1
    Is there a way that I can copy multiple UDF at Form2UDF2 from Form1UDF1 instead of creating query for each individual UDF, where in query generator I can select more the one column but only first column will be insert to the single UDF.
    Thanks

    Hi Firos,
    I mean I have 7UDF in the Payment Form where the information to this UDF are come from 7UDF in the invoice form which already created previously so I would like to copy those UDF from invoice to UDF in payment by using single query to capture all the UDF information by doing:
    SELECT T0.[DocNum], T0.[UDF1], T0.[UDF2], T0.[UDF3], T0.[UDF4], T0.[UDF5], T0.[UDF6], T0.[UDF7]
    FROM OINV T0 WHERE T0.[CardCode] = $[ORCT.CardCode]
    From above query can I pass the result directly to UDF in Payment Form? or I need to create one query for each individual UDF.
    Thanks

  • Creating multiple reports from one query

    Hello Everyone
    I are designing crystal reports where 1 query is built for 1 report / 1 sub-report. To improve overall efficiency of reports, I am trying to design multiple reports/ subreports from the same query. All the sub-reports belong to the parent report and they are very similar to each other.
    For example: in Webintelligence, we can just create 1 data provider and pull multiple reports from it and display it in multiple tabs.
    Can we do the same thing in Crystal reports??
    Please advice.
    Thanks
    Edited by: Devesh  Modi on Jun 9, 2010 11:19 PM

    Hello,
    If you are using WEBI then you have access to BOE. Create a Universe and publish it to the Repository and then you can use it as your data source.
    But I think what you are asking is how to query the DB once? Not possible, each subreport will run the query each time it's viewed.
    What you may want to do is create a Stored Procedure and get all of you info into one data collection and not use subreports, use grouping to emulate subreports. As an Example ....
    You may want to create a case in Service Market Place since you have BOE and work with a Report Design Rep to help you work out the best solution for you.
    Thank you
    Don

  • Count number rows in multiple tables from one query

    Hi
    I was wondering if its possible to have a single query return the number of lines in multiple tables, for example i have the tables
    foo1
    pk_foo1
    and
    foo2
    pk_foo2
    They are not joined together by any contraints. So the pseudo code for the query would be something like
    SELECT numrows(pk_foo1), numrows(pk_foo2) FROM foo1, foo2
    Thanks!

    without a join you get a cartesian product for the query:
    SQL> select count(d.deptno),count(e.deptno)
      2  from dept d,emp e
      3  /
    COUNT(D.DEPTNO) COUNT(E.DEPTNO)
                105             105so you need to do a bit of trickery
      1  select a.cnt,b.cnt
      2  from
      3  ( select count(d.deptno) cnt from dept d ) a,
      4* ( select count(e.deptno) cnt from emp e) b
    SQL> /
           CNT        CNT
             7         15
    SQL> select count(*) from dept;
      COUNT(*)
             7
    SQL> select count(*) from emp;
      COUNT(*)
            15

  • Moving multiple queries from one category to another in QM

    Hi All,
    Is there is any way of moving multiple queries from one category to another in the query manager?
    Or is the only way of doing it by saving each one individually into a different category.
    Any ideas ?
    Regards,
    Rakesh N

    Hi Rakesh,
    The query manager has limited function compare with normal file management applications. Under current design, you have to do this one by one. You just need to make sure move the smaller amount of queries to large category. Category name can be changed easily.
    Thanks,
    Gordon

  • Add to Multiple Tables from One Page

    Hello,
    I am building an application that handles hardware inventory (APEX 4.0). I have an input page that adds data to two or more tables all at once. The page has two forms on it that point to two separate tables. However when I try to run the page, it fails and returns an error:
    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table IDD_ID_DATA.
    So far as i can see within the App, that column is not at issue (I am not even doing anything to it and it is nullable). I have looked into the App itself as well as doing some online research but have found nothing helpful...
    So my question is this: Is it possible to add to multiple tables from one page? If so how do I do it?
    I am new to APEX so any help would be greatly appreciated!

    UPDATE:
    I received an email from the APEX Support Team:
    "The simple answer is that you will need to manually code the DML (and query) processes if you wish to maintain multiple tables from one page (There is a limit of one table when using the built-in processes).
    In order to do this I suggest you delete the processes generated by the wizards and create PL/SQL processes with insert, update, delete statements as necessary. Such coding is not difficult but is more time consuming than when you can use built-in processes."
    I have been playing around with PL/SQL code and the end result is this:
    begin
         INSERT INTO table1
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
         INSERT INTO table2
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
    end;
    I used this code in a custom PL/SQL Process in the Processing>Processes section of Page Processing and it seems to work fine now. The only downside to this method is if the name of a Page Item is changed the code will also have to be changed. Other than that i have had no problems.

  • About give from one query to other the same value of a variable

    Hi Gurus,
    my problem is About give from one query to other the same value of a variable, i have a wad with a view, and this wad has some bottoms in javascript to go to anothers wad with charts, the problem is when i ran the query one, i put a value = calyear:2008 (Obligatory Variable), but when i click the bottom to go to the other query with the same variable, he ask me again a value,
    i want write a value just one time, and the others wad can recieve the first value that i put when the wad opened.
    i really need it , thanks !

    Hello Jorge,
    What you need here is Replacement path variable. Check out this link for more details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    In the second query where you need the value (calyear:2008 from first query) create a Variable for calyear of type Replacement path, in Replacement tab you can select either query or variable by which it has to replaced. In your case, it has to be variable from the first query.
    Do let me know if this works. If this does not work I suggest you to use Web APIs to replace the variable values using Web APIs. Check out the details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/4d15422ecce02ce10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    Srini

  • To Move Multiple Files from one directory to another.

    Hi,
    I need to move multiple files from one directory in UNIX (application server ) to another. I need something like an FM 'STRALAN_COPY_FILES' which is also valid in ECC 6.0.
    Thanks in advance.

    Hello Sachin
    Below you see a copy of how to use EPS_FTP_PUT using transaction SE37.
    Import parameters               Value             
    RFC_DESTINATION =                 NONE              
    LOCAL_FILE             =         filename          
    LOCAL_DIRECTORY   =              /dir1/dir2        
    REMOTE_FILE             =        filename          
    REMOTE_DIRECTORY   =             /dir1             
    OVERWRITE_MODE        =          F        " force -> overwrite existing file                 
    TEXT_MODE                    =   B               " binary
    TRANSMISSION_MONITOR            X       " display transmission monitor            
    *RECORDS_PER_TRANSFER            10                
    *REQUESTED_FILE_SIZE             0                 
    *MONITOR_TITLE                                     
    *MONITOR_TEXT1                                     
    *MONITOR_TEXT2                                     
    *PROGRESS_TEXT                                     
    *OBJECT_NAME  
    Regards,
      Uwe

  • LOCAL Structure to be copied from one query to another query

    Hello all,
    In our query we have created a structure locally....
    we have to copy the same locally created structure from one query to another query which is on the same multiprovider.
    We do not want to make the structure global.
    Can anyone suggest some method to achieve this!

    For copiying structures fom query to another you have to do it global. After that you can do click on right button on the structure when added to your query and choose "eliminate reference" this does further changes in the structure were local for that query.

  • Scenario of multiple Asset from one AUC/WBS

    Hello,
    I am having a requirement, where I need to create multiple Asset from one WBS. I checked in the system and able to create more then 1 Asset for WBS.Also if I maintain the distrubution rules for those Asset then settle it accordingly to different Assets.
    I just wanted to confirm, will it we the right way of handling this scenario? My main concern is this involves intervention of user for maintaing the settlement rule during final settlement.
    Is there any other way to handle this scenario?
    Thanks
    Sarang

    Hello Virendra,
    I am not using Investment Managemnt. What do you mean by IM profile?
    I understand that I need to maintain the source of cost in Source structure. But even in that scenario the user has to go and maintain settlement rules and create multiple Asset against one WBS.
    So how do I tackle it, if client requirement is such that they want to create only one AUC, but during final Asset creation they want to create multiple Assets from one AUC. They dont want to have WBS for each Asset.
    Thanks
    Sarang

  • Creating multiple links from one map image in Flash CS4

    I have been tasked with creating multiple links from one map image using flash. Each link would go to the main website page with that location. I assume I could create a button for each location on the map but not having a lot of experience any help / tutorial you know of would be super helpful.. Thanks! Not looking for someone to work me thru it but a little guidance would be great!

    If I was to answer the problem, I would be giving you what you asked not to be given... the solution.  So I'll suggest that you start by researching the getURL() function.  That is what AS2 uses for opening web pages.
    As for coding a button, I'll recommend the following article for you... it will explain the proper approach to coding a button, which will give you an advantage over others who don't follow it, but instead use the way the article says not to.
    http://www.adobe.com/devnet/flash/articles/as_bestpractices_04.html
    Google is one of the best resources available for learning how to do things with Flash--it's the first place I go when I have a wondering.  In general, if you type in the right keywords, you get fairly good search results.  In your case, combinations of "AS2", "button", "getURL", "tutorial" would probably work well.

  • Passing Multiple rows from one external webpart list to another

    Hi Folks,
                    I have almost spent 1 week looking into this without any success. I have an external list "List A"  (in a webpart) with one of the columns as "State".
    Another external list "List B"  (in a webpart ) has state and user as columns. In some case I want to pass 1 state and in another I want to pass multiple state.  Passing one state from List A to List B works fine. But Multiple state does
    not work because the webpart list has the property "Send First row to connected web parts when page loads".  If I disable this option then the web part does not pass anything. Is there a way to pass multiple rows from one Webpart
    external list to other?

    http://www.sharepointanalysthq.com/2010/07/bcs-external-list-limitations/
    No Lookups
    Unfortunatly the only thing that you can do a look up on in an external list is on the ID column, anything else and you are out of luck.
    http://social.technet.microsoft.com/Forums/en-US/615771a0-ba78-4e38-9e2d-ded0204173ba/external-list-referenced-as-sharepoint-lookup?forum=sharepointgeneralprevious
    Try below webpart. it should help
    http://www.sparqube.com/SharePoint-Lookup-Column/
    If this helped you resolve your issue, please mark it Answered

  • From one query to another RRI

    Dear All,
    I have to 2 queries. Using RRI (t-code RSBBS) I have linked both the queries to move from one query to another. In the first query I created a formula which puts a condition on a Keyfigure, in aggregation tab, Exception aggregation=total and gave the refernce char........
    In my case formula "no of hrs < 24", total =  exception aggr  and refernce char= docket no". When I reproduce the report I get no of dockets as 38 because of the condition in the formula. I rightclick>goto the 2nd query using RRI. but here the report shows all docket nos, not restricted by the condition I gave in the formula in the first query. How can this restriction be carried from the 1st query to the 2nd?
    Regards,
    Jack Silverz

    hi,
    In ur scenario 1st Query gives Header level information and 2nd Query will give the detail level information.
    As per my understanding ur condition will work in 1st Query and in 2 it won't work because RRI's functionality.
    Regards,
    Edited by: ali basha on Jan 20, 2010 11:51 AM

  • Drill through from one query to another query

    Hi experts,
    Anybody knows how to do drill through from one query to another query?
    Any feedback will be really apreciated.
    Thanks.

    The setting can be done in transaction RSBBS.
    You only need to specify the sender and receiver query..
    Ashish..

Maybe you are looking for

  • All drives busy, how to free one for tape labeling?

    Our backups are currently wedged because of a media shortfall. We have a dedicated mediafamily for full backups and all of the tapes for that pool have been exhausted. All of the drives are have backups running (paused, really) and waiting for tapes.

  • My ipod touch is frozen in recovery mode

    I disabled my ipod and tried to put it into recovery mode, it worked but in the middle of resetting my ipod the screen froze. I am not sure what to do to get it off of that screen.

  • Photoshop after Latest CC updates is not working properly.

    I just installed CC Photoshop's latest update and now I'm totally out of commision.    Unable to work with any of my previous 3d projects.  They appear to load, but as soon as you select any object, it falls apart.  Objects go flat and rearrannged.  

  • TDS in MIRO transaction

    Hi, I have prepared MIRO with TDS.  So entry has generated like: Expense Dr.   1000 TDS       Cr.          10 Vendor   Cr.         990 After that I have deposited the TDS entry by creating challan and ultimately this has become clearing entry. After

  • How to download a report into CSV file format?.

    Hello all, I have a requirement like this. I have one custom Report. I need to download this report output into CSV format. In the selection screen, i am giving the pathname where report output need to be saved. Please let me know how to do it.. Than