So I've run into an issue where my query data is sorted one way, however when viewing the report for this query the data is not shown in the sorted order.
How can I sort the data in the query and produce the report in the same sorted order?
You can use the "Group & Sort" Properties (activate them with the "Group & Sort"-Button in the "Design" Ribbon-Tab) of the Report to sort the data in the report any way you like.
If it is a report without any group levels, you could remove all the sort settings for the report. Then it should be sorted the same way as your query.
Related
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 an sql query which selects a list of data.
but i want to use this data after filtering it in excel table (not in power query)
i tried to create another "query from table" but it takes all the data, not the filtered one.
Example File
any ideas ?
If you filter the table in Excel, it will only hide the rows that do not meet the selection criteria, it will not delete the rows.
In order to get a filtered table, you can create a separate table with filter criteria and use that to create a filtered table, either by using Advanced Filtering in Excel, or by using Power Query.
In this video I illustrate how to do it with Advanced Filtering.
I want to understand how sorting works in GSA in below situations:
1) I am executing the query "Jayesh Bhoyar Autobiography" and I received 2000 records and in the query I have also mentioned sort by Date. So my understanding is GSA will pick Top 1000 records from above list based on the Relevance and then Sort it by Date?
However I want GSA should return only top 100 results for "Jayesh Bhoyar Autobiography" as per the relevance and sort on those top 100 records based on the Date. IS this possible?
If yes, how it is possible?
Regards,
Jayesh Bhoyar
The GSA can't do this by itself. If you want to do this, you can easily build a simple application that fetches the first hundred results sorted by relevance, then sorts those results by date. Use the simple XML API to fetch unformatted results from the GSA.
Search Protocol Reference
I can't find any informations on Azure Search documentation about how the results are sorted when the query sent is empty. I've also read the Empty Search section of ElasticSearch but still can't find any answer.
Is this sorting by Key?
Is the backend sending a batch of parallel requests and concatenate the results since the sorting doesn't matter?
in case of empty query, the sort order is unspecified. You cannot rely on any particular order. If you need a specific order, ask for it using orderby query parameter.
HTH,
Eugene
Suppose you have millions items(say search results) and you have different parameters for sorting these items(like in eCommerce sites). We will be showing the items using pagination.
Let us say it can be sorted by date, popularity and relevance and results are paginated. How would you implement this functionality? Generally I would create different compare functions for parameters and get results accordingly.
If there any other efficient way to have this kind of functionality instead of sorting the search results every time? Also, do we generally run sql query every time using relevant order parameter or should we sort the search result of previous query to save us from re-searching time?
"If there any other efficient way to have this kind of functionality instead of sorting the search results every time?"
I would say you do not need sort every time but execute SQL query with appropriate OrderBy parameter, paginate it and show to the user
"Also, do we generally run sql query every time using relevant order parameter or should we sort the search result of previous query to save us from re-searching time?"
For sure you need to generate a new SQL query, as the first page data based on a new order parameter can contain completely different set of data from previouse one.