Apache superset Aggregation metrics are not available/selectable from the slice editor menu - scatter-plot

In apache superset's default widget (slice) called "Life Expectancy & Rural" Metrics Assigned to X and Y axes are selected from the List of Metrics , not from the List of fields.
Figure1: White ticker for Metric Selected & Gray ticker for plain column
Totally cannot see these metrics from my menu:
Figure2: Only Plain fields are available, the only Metric available is COUNT(*)
Once I try using original field and add the aggregation function straight from the slice editor menu - getting an "unhashable type: 'dict'" error
Disclaimer: I didn't alter examples database

Related

How to display the last value in Grafana Gauge

I'm new to using Grafana and I'm trying to display the last value of a table that's organized by dates in a Gauge visualization.
All the options I'm seeing to displaying the data are grouping methods like max, average, sum and so on.
Is there a way to get only the latest most updated value from that table? And to always display it?
I'm using Grafana v7.1.3 and ES.
Choose "Last" or "Last (not null)" from the "Display" option:

Setting parameter controls and using filters

I currently have a dataset of speeding fines in NSW.
I've created a bar chart that displays the top 10 frequencies of speeding offenses. These offenses are split up between school zone offenses and normal speeding offenses.
I'm trying to set a parameter control where the end-user can toggle showing the top 10 normal speeding offenses (pink), top 10 school zone offenses (purple) or both together (pink and purple).
I've gotten the below parameter control:
However nothing happens to the bar-chart.
My Dataset looks like the following:
I have a School Zone Indicator boolean that is a Y if the speeding offense occurred during school zone time.
Can someone help me figure out in filtering this out when setting parameter controls?
The answer is based on this article showing how to add all to a parameter in Tableau.
We need to create a parameter with the same values as the field. As your field is either Y or Null let's create a new field to convert the Null to N. Call it isSchool with the formula:
IFNULL([SCHOOL_ZONE_IND],"N")
Create a parameter based on that field with the values Y, N and All. Display As whatever you want, so you can display parameter value All as Show Both if you wish.
Put [isSchool] to filters.
In the filter you want to filter Condition - by Formula. Enter this formula:
IFNULL([isSchool],"1")=IF [YourParam]!="All" THEN [YourParam] ELSE IFNULL([isSchool],"1") END
That should do it.

How do i change the metric of metricspanel in Grafana plugin

i am trying to implement a plugin with an own tab.(In the clockpanel it is the editor.html.. tab)
In this new created editortab i want to minimize the resultset of the metric panel aggreagations.
My defined settings in my extratab should set a predefined query. (Metric, Grouping, lucene..)
For example: in the extratab is a dropdown menu. One entry is 'showUser'.. the metricpanel aggregations should be set to grouped by user..
How do i do that?..
I really appreciate every help !

Kibana 5.5 visualization data aggregation percentage

I'm using Kibana 5.5 and would like to create a visualization that shows percentage of successful transactions made to my server.
In order to do that I have a field in the document named "httpCode" and I would like to get the percentage of "httpCode: 200" out of the total transactions made.
I managed to put this in visulalization that does separate lines, but I would like to get percentage over time and not count.
Thanks,
Moshe
Create a new bar or area chart and choose count as aggregation, set your field for Date Histogram. Next in buckets tab add Split Series and choose Filters as Sub Aggregation. Your first filter should look like that:
Filter 1
httpCode:200
Use http.keyword instead if is available.
Filter 2
NOT httpCode:200
Go to Metrics & Axes tab, expand LeftAxis-1 and change mode to percentage:
On my exmaple it should look like that:

Create multipe charts using filtered data from a table

I'm developing a report on Report Builder 3.0 that should look like following image.
Each pie chart should receive the value of the properties "Approved" and "Reproved" for a specific date and machine.
Is it possible to filter these properties on each Date/Machine group? The DataSet may include other properties that will be shown on the Property/Value table, but will not be included on the chart
At this moment I have the following model for the report
I´ve tryed to use the lookup function, but, as expected, it returns all the values on the DataSet. Is it possible to narrow the search scope?
Below is the DataSet that I'm using for the test:
|Machine|Machine_ID|Date|Property|Value|
|--------|---|----------------------|--------|---|
|Machine5|A|2017-02-12 20:00:00.000|Total|200|
|Machine5|A|2017-02-12 20:00:00.000|Approved|150|
|Machine5|A|2017-02-12 20:00:00.000|Reproved|50|
|Machine2|B|2017-02-12 20:00:00.000|Total|0|
|Machine2|B|2017-02-12 20:00:00.000|Approved|0|
|Machine2|B|2017-02-12 20:00:00.000|Reproved|0|
|Machine1|C|2017-02-12 20:00:00.000|Total|100|
|Machine1|C|2017-02-12 20:00:00.000|Approved|80|
|Machine1|C|2017-02-12 20:00:00.000|Reproved|20|
|Machine1|C|2017-02-13 20:00:00.000|Total|300|
|Machine1|C|2017-02-13 20:00:00.000|Approved|200|
|Machine1|C|2017-02-13 20:00:00.000|Reproved|100|
Thank you.
This should be doable with row groups in a list.
Insert a list
Add a parent row group to group on DATE.
Group your details region on MachineID
Insert a tablix into the detail region rectangle
Insert a graph next to it
Insert a column next to the detail region (to the left) to get the MachineID column
It should look like this..
This shows the two row groups, and the detail region with the tablix and the graph.

Resources