Filter shared query results with another panel in Grafana - grafana

Is it possible to filter the data shared between panels in Grafana?
Let's say I would query all the columns in the first panel with:
SELECT time, A, B, C, D FROM "table"
And in a second panel, I would like to show only A end B, how can I filter that columns?
Thanks!

Add transformation (e. g. Organize fields) and hide fields, which you don't need - it is not a "filtering", but field hiding.

Related

How to change ordering on multiple columns in Crystal Reports

I am trying to display a list of names in crystal reports in multiple columns only if there are enough names that it would split into multiple pages otherwise. I want the ordering to be "across then down" when it's in two columns, otherwise if there aren't enough names, just display a single column of names in order.
The problem I'm having is that the ordering is off when it's in two columns, it goes like:
A - F
B - G
C
D
E
But I want it to be like:
A - B
C - D
E
F
G
And for only a small group that fits on one page, like this:
A
B
C
I have "Format with Multiple Columns" in the "Common" tab, and "Down and then Across" on the Layout tab.
Crystal doesn't have dynamic expression option for 'Printing direction' so you must commit to either 'Across then Down' or 'Down than Across'.
As a way around that, you can insert to subreports, each with a different choice for that property. Then, suppress one and show the other based on the number of records.

How to filter top customers within certain section in Tableau

I have a Tableau file whose source is from one Excel sheet as shown below:
And it's how it looks in Tableau:
I have a Tableau sheet to show me the top 3 customers in each section. For example, company F, H, J, B, A are in section XXX, I filter section XXX only, sort F, H, J, B, A, select the top 3 customers and hit "keep only". So I have a table of top 3 customers in XXX section. Please see the pics below:
My question is, every month I have an updated Excel sheet with same format and I feed it into Tableau, the sales change every month but I always want top 3 customers in each section. For example, top 3 customers this month in XXX section are F, H, J but next month it might be A,B,H. However since I use "keep only" to filter F, H, J, the top 3 customers can only be F, H, J unless I manually change the filter. Is there anyway I can program Tableau to pick up the top 3 automatically whenever I feed new data to this file? I know "filter top n by" can do it but it can only filter by one variable, like they can only filter by sales instead of sales AND sections. I want to use "by formula" in the pic below to do it but I am not sure how to write the formula.
Have you tried to use the "Top" instead of "Condition" tab? You could also try to use a rank.
Create a calculated field "Rank", put index() into it, make it discrete and put it between your segment and customer pillow. Untick "Show header" and use it as a filter on the filter shelf.
I would use the Quick Table Calculation Rank. To do this create a new worksheet as follows:
Drag Section onto Rows
Drag Customer onto Rows
Drag Sales onto text mark
Drag sales onto detail
Right click the sales that you have dragged onto detail. Select Quick table calc and then rank.
Change this table calc from the detail mark onto the rank mark.
Now you can see what it is doing my default. You can see that is will be calculating the rank across all sections. As you mentioned you want the rank per section you just need to adjust the way the quick table calc is working. To do this right click on the measure and select edit table calc. Under Compute using you can change the way the calc is working. Select a couple of different ones to see what is happening. As you have structured the workbook to have Section and then Customer on the Rows shelf you should be able to use pane across then down. This means that it will calculate the rank per pane which in this case is per Section and will calculate down across Customer.
8) You can now drag this measure onto the filters pane and select a range of 1-3 this will filter the view to only show the top 3.
This method will work dynamically even when the data is updated :)

Tableau Filters Enabled/Disabled based on another control

I have a single data source and multiple sets of filters into my dashboard based on the same data source. When a particular set of filters is selected I want to disable the other set of filters. Is there any way I can work this out on a Tableau dashboard.
For Ex. There are 5 groups of filters A, B, C, D, E.
I want to give my users the options to select the filters from Group A or Group B. So when the filters from Group A are selected the filters from Group B should automatcally be disabled.
Thanks n advance

Order of items like in siteadmin

I have a table with a list of some items. The items are the titles of the pages which are displayed in siteadmin. E.g. my items in the table are showed like this
A
C
D
F
G
But at siteadmin they are displayed the following way:
D
C
G
F
A
The task is to keep the order of the items in the table like the order of those in the siteadmin. Going back to the example I want the order of items in the table to be like this:
D
C
G
F
A
Is that possible to do it with the QueryBuilder?
Thanx in advance
By default the pages in site admin are ordered by date of creation. try ordering the result of your query by created date.Check out the link below
ADOBE CQ5 JCR - How to orderby/sorting query builder result using node's property
The order in which the site admin shows the pages can be modified by the user by clicking on the Column headings in site admin.

How to Query Function Google Spreadsheet - Data filtering based on multiple criteria (multiple columns to check at once)

I have a Google Spreadsheet that contains five (5) sheets, and we are starting to use them as a basic CRM to manage tasks, projects, deadlines and customers in a very basic fashion.
We assign tasks to each other in the first sheet "TaskRecords", and then we will populate the other sheets with the information there.
This the google spreadsheet (with mock data):
https://docs.google.com/spreadsheet/ccc?key=0AkB1z6YLt9N_dDU0VGgyZjN5cGt2UmtRb05FbWRRZ1E#gid=6
What I would like to achieve is to filter by means of a Query function or so, to use the spreadsheet as a database and filter the following: Taks by Team Member, by Customer, by Deadline, by Project, etc, and displaying the on other sheets.
I tried with Query formula: =QUERY(TaksRecords!A2:I17; "select A, B, C, D, E, F, H, I where G="AL""; 1). Where I would like to filter everything that Team Member "AL" has been assigned to do, but I'm missing something.
I also tried to pull data out to other sheets using Arrayformula, but it only fetchs the cells I tell it to, and does no filtering based on multiple criteria at the same time.
Furthermore, there will be new rows of data added every day.
Maybe there is some script already written that solves this, I've been testing for several days with different options but couldn't get them to work.
Any hints?
Thanks.
Use this query
=QUERY(JOURNAL!A1:E100, "select A, B, C, D, E where col1='Fruit' and Col2='Sweet'", 1)
It's just a matter of quotes. Try this, with single quotes around the name 'AL':
=QUERY(TaksRecords!A2:I17; "select A, B, C, D, E, F, H, I where G='AL'"; 1)
I'm no expert in this area, but I would use FILTER instead of QUERY. I use Query for a pre-defined formula to find certain records, and Filter to take a large quantity of records and narrow it down by certain defined criteria. Query is nice and clean, but it appears FILTER will suit your needs better.
How about doing a query of two conditions like:
WHERE Col1='Fruit' AND Col2='Sweet'