Show Kibana data table aggregations by columns instead of row - elasticsearch

Using Kibana 4.4.1, I seem to be only able to create data table sub-bucket aggregations visualized as rows:
Is there a way to display the aggregation as columns instead?
Invitation time CampaignType:Sms CampaignType:Email
Feb 19th 2016 15:45:00.000 3,185 8
Feb 23rd 2016 17:15:00.000 2,229 11
Feb 24th 2016 15:45:00.000 16,523 38

There are ways to do it.
You may need to filter the columns based on sms and email before doing the visualization , then you may get the appropriate result.
Or with the result that you have , you can export it as Raw or formatted and then allign them according to your needs in Excel.

Related

Excel Power Query storing the old data in a column

In excel power query I have a linked excel file where only the last column is updated by the team. For example is the cut-off data day is Jan 13th then the data is titled Jan 13 and the rows are updated for this week. When the update is done the following week, the column header is changed to Jan 20. How can I keep the old data for Jan 13th in power query so that I only get the new data in a new column when refreshed?
I tried but I am stuck
PowerQuery doesn't store any data, it's essentially a transformation script, that uses whatever is in the linked source when refreshed. So if the data for 13th is gone at the source it will be gone in PowerQuery too. If the column for 20th is added next to column for 13th, then you can create a dynamic logic that would keep more columns.
You could create a logic preserving the historical data using VBA (to store it in the not linked table), but in Excel & M it is not possible. With PowerBI there is an option of incremental refresh that potentially could be used here, but it's not available in Excel

Two Date Filters in Google Data Studio

I have a Google Sheet as the source data for a table in Google Data Studio. My table includes fields for "Sign Up Date" and "Cancellation Date".
I want to be able to filter so that I can choose a date range for "Sign Up Date" and a different date range for "Cancellation Date". For example, show me all records where the "Sign Up Date" is between Jan 1 to Jan 31, 2021, and where "Cancellation Date" is between Aug 1 to Aug 31, 2021.
As far as I can see you can only choose one Data Range Dimension per table, and any date filter you add is tied to that date field.
Is there any way I can have separate date filters for each of my date fields?
Two Range Slider Community Visualisations could be used (one for each of the date fields, Sign Up Date and Cancellation Date).
1) Accessing the Range Slider:
Click the Community Visualisations and components icon on the toolbar:
Select +Explore more to view all:
Choose the Range Slider chart from the displayed Community Gallery:
Click "Allow" to grant access to the respective Community Visualisation:
2) Using the Range Slider:
2.1) Sign Up Date Range Slider
Create both Range Sliders below and adjust the date range as required, in this case 01 Jan 2021 to 31 Jan 2021 for Sign Up Date and 01 Aug 2021 to 31 Aug 2021 for Cancellation Date:
Column to filter on: Sign Up Date
Cross-filtering: Select (☑) (this option makes sure the Range Slider also affects other charts)
2.2) Cancellation Date Range Slider
Column to filter on: Cancellation Date
Cross-filtering: Select (☑) (this option makes sure the Range Slider also affects other charts)
Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate:
It looks like there is not.
What you can do it make different versions of advanced filters and use the "Between" function to compare numeric values. So you have to convert dates to some kind of numeric value first. Here is an example for this:
Data Studio Date Range Filter on hour, minute level

Is there a way to keep Month Data from May 2019 to Jan 2020 in powerbi Bar chart

I have an excel data with Data(from May 2019 to Jan 2020), few columns have been added in power bi mainly Month Number and Month Name.
For Month Name, sorting has been done by Month Number.
However, when i put the Bar graph, and sort it i get the bar graph from Jan 2020, May 2019, June 2019, July 2019 so on until Dec2019.(Image has been attached)
Do we have any way where we can put the graph starting from May 2019 all the way to Jan 2020 in x-axis.
I would suggest creating a date field and using that in the chart instead. The calculation could be something like:
Month New = DATE([Year],[Month Number],1)
Then you can customize the date field to just show the MMM-YY part. This way your sorting issues will be resolved and you won't face any issues in the future as well.

Kibana Visualize - How to aggregate data with two string field values?

I have data as follows in ElasticSearch:
timestamp item_id item_status
January 24th 2018, 12:06:34.287 1 Processing
January 24th 2018, 12:10:14.310 1 Completed
January 25th 2018, 07:21:30.876 2 Cancelled
January 26th 2018, 09:11:55.775 3 Completed
I want to query this data such that I can get all items that have had both Processing and Completed as their status. In my case, my query result would just be:
item_id
1
timestamp is a timestamp field and item_id & item_status are string fields.
How can I do this with Kibana Visualization? I have been doing something similar to https://discuss.elastic.co/t/how-can-i-make-visualization-with-group-by/43569/2 and Run a simple sql group by query in kibana 4 but it did not really get me what I wanted.
Thanks in advance!
In a Kibana visualization, if you add a query string or a filter, and save the visualization, then the visualization will apply these on top of any other filters that you would use when using a dashboard.
If you plan to apply these filters to multiple visualizations, then you can first make a saved search in the Discover mode, and when making the visualization, create from the saved search (Visualize > New > From a saved search.

When building a report in BI SAP, how do I create a dynamic Task Finish Date filter that will change with each monthly report?

Specifically, if the report is scheduled for the 31st of every month, at 11:59 PM, I want the report to show data from that month.
Example: Report is run on Jan 31, 2016 11:59 PM. I would like the data to show everything with Task Finish Date from Jan 1, 2016 - Jan 31, 2016.
Thanks!
the simplest way is to create variable which will return for specified dates in cross table zero or one. Then set filter on it and show only 'ones'.
the solution you've provided is also simple - fistdayofmonth might be created by creating new date as year(run_date)+monthnumber(run_date)+"01"

Resources