on 10-21-2013 7:47 PM
I have a report that has multiple cells placed on it with data metrics. (Number of Loans, Balance of Loans). I have an Input Control that filters these cells based off of their State (California, Colorado, etc). I have an an additional cell on the report that has a couple different filters for it's query that makes it different from the other two cells (Number of Loans and Balance of Loans), but I want the same Input Control to filter them both even though they have different queries that create them. Is this possible??
Plz try this if you have two block in report tab and also you do not merge the query
In the Edit Input Control box, go to the Dependencies tab.
You see Block 1 is selected. Select Block 2 as well.
Click OK. Now, try it out. As you select values in the Input Control, Block 1 & Block 2 continues to show the filtered data,
Regards,
Kannan Karthikeyan..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can retrieve the value selected in the input control using ReportFilter([state]) .
Now create another formula if ReportFilter([object]) = [Query 2 State] then 1 else 0
Then just create a regular block level filter using that new object for the block with set value as 1. You might have to do some additional steps here to make to compatible for a cell which I am sure you can easily figure it out.
That should do the trick for you. Let me know if you face any issue with the approach. I will try it out in my machine when I get some free time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the "if" formula I have: =If ReportFilter([Bank Scoreboard].[Market Name])=([YTD New Loans].[Market Name]) then 1 else 0.
"Bank Scoreboard" is the query that is driving all of my other fields in the report and "YTD New Loans" is the query for the one field that I want the filter in "Bank Scoreboard" to control too.
Hi Dylon,
I checked in my machine and the approach I suggested works. However it does not work for ALL value selection in input control. For which the formula needs to be modified a little bit.
Step 1 : Get the input slection from Query1 lets say [INPUT]
=ReportFilter([Fiscal Year Id])
Step 2: Create a formula useing query 2 Object like [Query 2 Filter]
= If Pos( [Input] ;[ Query 2 Fiscal Year Name] ) >= 1 Then 1 Else 0
Step 3: Create a filter on the Block or cell fetched by query 2 as
[Query 2 Filter] = 1
This should solve the issue . Check these screenshots . In my example one of my query based of HANA (Left most block) the second query is based on Oracle (Middle) and right most block is to show the selection in input control
Also there is one more way you might achieve the same thing(I have not tried it) that is based on element linking.
I think we're close but I must still be missing some small step. Currently, I have one Variable created called
"XVAR" and the formula is: =ReportFilter([Bank Scoreboard].[Market Name])
The next Varialbe is:
"Query 2 Filter" and the formula is: =If Pos([XVar];[YTD New Loans].[Market Name])>=1 Then 1 Else 0
I then set a block filter on "Query 2 Filter" to 1. The "Market Name" Input Control still does not filter the cell running off of my secondary query. What am I missing??
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.