on 2007 Jan 01 8:57 PM
Hi, everybody,
I would like to know the process to create a prequery for my query. Could any one give me some documents or ideas?
Thanks in advance and a Happy New Year!!!
xiaoxuan
Xiaoxuan,
A prequery should consist of all the data from which the other query can take values from it. For example if you have a query which is executed for all the company codes, then it can act as prequery for a query which is executed for a particular company code.
Hope this helps you......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Xiaoxuan,
Pre-query also called as control query. We use this in generating precalculated queries using reporting agent. For example u have a base query (Q1)with 100 company codes, but if u want to generate 100 single queries (one for each company code) based on main base query then ...
Then create Query Q2 with company code variable, restrict to specific comp code & save that as variant.--> in reporting agent U can split the main query Q1 based on Q2 & it's variant..
Hope it helps..
Ramesh
Thanks for the replies. I had a based query A which runs all the result for the sales of different kind of materials. And I would like to run another query B to show only those materials with sales more than 1000K last year. I create a variable of 0Material in query A. How should i continue to realise this scenario?
Thanks
For your requirement, I guess you may need to do the following.
1) Create a calculated key figure where you restrict the key figure > 1000.
For example: 0amount > 1000 * 0amount.
2) Clone the base query and use the calculated key figure and suppress Zeros in the display option.
Viswa
(Assign points if helpful)
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.