Kibana Visualization based on multiple fields - elasticsearch

Been searching for a day or two on how to do this, really hoping someone can help...
I want to create a visualization based on two fields.
Fields are:
Name
Activity
Name could have a string value of around 200 different names.
Activity has only two possible string values - 'increase' & 'decrease'.
What I want to do is visualize a count of the amounts of increases & decreases overlapping for each name on a bar chart.
Is this possible?
E.g. Say the name 'Bob_Jones' pops up in my log five times & one has an increase value, but four have a decrease value. How can I visualize that particular name on a bar chart with both the count of increase & decrease values overlapping on the chart?

You have to use Visualize.
On the left, leave Y-Axis as it is. On X-Axis remove everything you already have: you should find yourself in the following situation:
press on Split Bars. Now select Terms in the Aggregation dropdown. In the Field choose Activity on the dropdown (the name of your field).
Now you have to press on the button in the bottom of the screen, called Add sub-buckets. Choose X-Axis, put as Sub Aggregation the value Terms once again, and in the Field choose Name.
Now, if you press the "Play" button (check the pic I uploaded, in the top-right) you should have what you are looking for.

Related

PowerBI barchart highlight

I have five organizations in one column and their value in different column.
I selected bar chart visuals showing every org's in x-axis and their values in y-axis. I have a slicer filter drop down of all organizations.
My question is when I select only one particular org in the slicer filter, I would like see all the org's in the bar chart visuals AND the one org I selected should be highlighted or different than other bar so that it can be easily noticeable.
How can I do this in Power BI? any help is appreciated. Thanks
The best way to achieve this would be to not use a slicer and rather a table with just the organization names. You will be able to format the table to look more like a slicer by playing around with the visual settings in the visual.
This should give you the functionality that you are looking for as the users will be able to click on the name in the table and it will only highlight the bar that is being used. If it does not please check your settings and see if the cross filter setting is set to highlight.

Power BI loses sorting between two different chart

I don't know if this is a recurring problem or not, but I have a Power BI solution which has a pie chart and a bar graph. The bar graph is sorted in descending order by a "Value" field. Initially my Power BI file is loading with the below viz. I want to filter the right graph to bring TOP 5 countries name by descending order of their value when a user clicks on pie-chart on left side. The left side is the category of each countries viz. 0,1,2 & 3.
Below happens when I click Category "0". As you can see Power BI gives 9 results (highlighted by dark green)
Same happens for Category "1". Again I see more than 5 values.
Check interactions under format tab. Select the primary visual (in your case pie visual) than click on the filter tab on seconday visual (Bar chart). Default filter is highlight.

How to manually sort/arrange a Power BI funnel chart?

I have searched all over for an answer to this, including Microsoft's Power BI documentation, but I have not been able to find a solution. I did find a Microsoft document that said "funnel charts can be sorted", but then it did not go on to explain HOW to do that!
My funnel chart is sorting by default from the item with the highest count on top to the item with the lowest count on bottom. That is to be expected from a funnel chart, but we want to sort our chart in a specific order that has to do with the chronology of landing a new customer.
Here is how Power BI sorts our data by default:
Power BI funnel chart in the default sorted order:
However, this puts the items out of chronological order, so we want it sorted as follows to represent the life cycle of a customer from initial lead to a signed contract:
Power BI funnel chart the way we'd like to sort it:
I tried adding numbers in front of our category names to override the sorting (e.g. 1.Prospect, 2.Qualified Lead, 3.Contract Sent, 4.Signed Customer), but that did not work.
Is there a way to manually order the items in a funnel chart? Many thanks for any assistance!
I managed to answer my own question! I was on the right track previously when I added the numbers in front of the labels (e.g. 1.Prospect, 2.Qualified Lead, 3.Contract Sent, 4.Signed Customer). But I assumed that Power BI would then sort by that grouped value, when in fact you have to manually force it to do so by clicking the "More options" (three dots) icon in the upper right corner of the element. Then choose "Sort by", select the Group you want to sort by, and then choose "Sort Ascending".
The result is exactly what we were looking for:
Funnel Chart sorted by group:
Of course, if you don't want the numbers in front of your labels, then I still don't know how to do that natively in Power BI, but this work-around will meet our needs for now.
You may want to try this paid custom visual: https://zoomcharts.com/en/microsoft-power-bi-custom-visuals/custom-visuals/drill-down-column-line-area-chart/
It does offer sorting to control the display as necessary.
Janis
Disclaimer: I am co-founder of ZoomCharts
A bit of a hack: sometimes you can add the column you want to sort on, in the 'tooltips' field of the visual. This does not change the visual, but you can then (through the three dots on the visual) select that field to order the data on.

Xcode calculations with multi-component picker

I would like to set up a view controller with a 2-component picker where each side contains the same 7 objects. Each object carries the same value for both components. The user would make a selection from each side, enter a value in a provided text field (and optionally tap a "Calculate" button). A calculation would occur using that value and the values from the two picker component objects that were selected and the results would be displayed in a label.
For example, each picker contains the letters a - g. Each letter carries the value of 1 - 7 respectively, for each side of the picker. The user selects "b" and "d" and enters 10. The calculated result of 10 * 2 / 4 = 5 is displayed.
It sounds simple enough. I've found tutorials for doing calculations using values associated with a 1-component picker as well as working with 2-component pickers, but nothing for doing calculations with 2-component pickers. My experience with Xcode is somewhat short. So, feel free to go into detail.

What gui? Creating an order: many images, many print sizes

I have an app where users select images they wish to print, the print sizes they wish for each image, and a quantity for each image/print size pair.
I'm wondering what sort of GUI I can use to do this well. I do have to allow for 'batch adds' - i.e. clients are often professional photographers and may print a whole lot of images at several sizes, so I don't want to create a flow where they have to select a single image and go from there.
Currently, I allow selection of images and print sizes independently, with a qty field and an 'add' button. This works well for adding but I need a whole other UI to edit/remove items, and it doesn't represent the order state well.
Any ideas? Thanks.
Sure, what about something like this:
(source: fullahead.org)
Initially all image thumbnails would have the blue Order Prints link. On click it would create a Size dropdown and Quantity text field.
Once the user entered in both fields, a red "X" would appear beside it, allowing them to delete that specific order.
The user would also be able to keep clicking Order Prints on a single thumbnail to add multiple size/quantity orders for a single image.
As a nice usability feature, you could add a subtle selected indicator to thumbnails that have a print request on them. This would let your users quickly see what images they have pending print orders on.

Resources