Is it possible for me to query filter data by month? I want the YEAR, ID, NAME and CLASS columns to remain the same but the PAGE and CHAPTER data change according to the set month.
The query filter in sheet name 'Query'
https://docs.google.com/spreadsheets/d/1hCe1YdTPUq3AkxGAmVe2CMhnuAch5p5UD7YT1HFTj5M/edit?usp=sharing
Details
Tried to change formula but is not work
Added FILTER based solution to your sheet here. Please do test it out.
=LAMBDA(z,FILTER(FILTER(DATA!$A3:$Z,REGEXMATCH(COLUMN(DATA!1:1)&"","\b1\b|\b2\b|\b3\b|\b4\b|\b"&z&"\b|\b"&z+1&"\b")),REGEXMATCH(DATA!$A3:$A,IF($B3="ALL",TEXTJOIN("|",1,UNIQUE(DATA!$A3:$A)),$B3)),REGEXMATCH(INDEX(DATA!$A3:$Z,,z+1),IF($B4="ALL",TEXTJOIN("|",1,UNIQUE(INDEX(DATA!$A3:$Z,,z+1))),TEXTJOIN("|",1,UNIQUE({$B4,$C4,$D4},1))))))(XMATCH(A6,DATA!1:1))
Related
*We are trying to utilize the time range selector in grafana which works only for time series representation as of now. Can you please let me know any way to utilize that time range selector for bar-chart and bar-graph in Grafana representation.*
Adding the Schema, query and representation in grafana for reference.
Schema:[ https://i.stack.imgur.com/n2srW.png]
query: [https://i.stack.imgur.com/HwWRJ.png]
Bar-chart rep: [https://i.stack.imgur.com/1MQbA.png]
Not totally sure what you are asking but hopefully this is right.
Your query has no where clause to filter by the selected time in Grafana. You can use a Grafana macro to add a time range filter. The MySQL macro documentation is here. And there are some examples further down on the page.
You haven't specified what the table schema looks like or which column you want to use for filtering. So I made a guess and just added a where clause with the $__timeFilter macro and filtering on the lastupdated column as it is the only datetime column in your example:
SELECT
lastupdated as time_sec,
TIME_FORMAT(sec_to_time(time), "%H:%i") AS total_time,
mrid as metric
,time/3600 as time_in_hours
FROM margetomerge.mergedetails
WHERE $__timeFilter(lastupdated)
order by mrid desc
I have a dashboard in Quick-sight where a table is being used which contains a field that has values list aggregated.(Please refer the attached image).
I need to create a filter in a dashboard that will have a dropdown with distinct values from the list aggregated values so that if i select/check a particular value from a dropdown then it should filter out the list aggregated record by matching the string i selected in a drop down.
I tried to use the split function to get the distinct values from the list aggregated values from the field. However, the filter did not work as i expected.
Please suggest possible solution. Will appreciate any suggestions.
I have a quite simple problem.
I want to make a query on Scopus and I know that to restrict the search of field to title, abstract e keywords I could use the label "TITLE-ABS-KEY" at the beginning of my query.
My question is: how could I restrict the search of field to the different journal categories?
Example. I need all the journal correlated with "MARKETING"
I expected a query like (for example) : JOURNAL("Marketing")
Which is the label that I have to use to substitute "JOURNAL"?
Thank you for your suggestions.
According to Scopus Seearch Tips documentation, in the query must be added the parameter "SUBJAREA", for example:
http://api.elsevier.com/content/search/scopus?query=SUBJAREA(CHEM)&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This query search all articles related with CHEMISTRY.
In this link are all the available options for SUBJAREA(XX).
I hope I've helped :)
How do I query using Sitecore fast query to retrieve those records that has published date? I tried using the below but it did not return any value.
And how do I retrieve only the last node? Because when I use descendant::*, it will also return the parent out.
fast:/sitecore/content/test//[##parentid='{5656C582-A876-41E6-8441-A3F0BA0D2601}'
and #Publish>'20170101T000000']/descendant::
The Sitecore Field name for the publish field is not Publish. You need to make use of the following syntax for publish field: #__Publish.
You can see the right field name in the Inheritance from the template. You will be able to see the field names as shown below:
So, your query will looks as follows:
fast:/sitecore/content/Home//*[##parentid='{5656C582-A876-41E6-8441-A3F0BA0D2601}' and #__Publish > '20170101T000000']/*
I have a field that contains numbers. I want a filter that shows all logs that are less than a constant value.
When I try to add a new query filter, all I can see is a query string option.
If you are talking about the query field a syntax like this works:
field:<10
Will find just records with a field value less than 10. Found this by experimentation one day -- don't know if it's documented anywhere.