How to exclude "others" in my pie chart in Data Studio - pie-chart

I have a pie chart in Data Studio as below:
As you can see from the donut, there is "others" slice which I don't want to see it there, and I want to customize the label to show "python (88%)".
Can anyone share your expertise and enlighten me on how to do it?
Thank you very much.
UPDATE
Following #Jaishree's suggestion, I have selected only the top 10, so there is no "others" now.
however, I still don't get it on how to show the label as "python (88%)"
As you can see, I have two fields in my data source (the table on the left): Category and TagsTotal. There is NO percentage_field.
To show "percentage", all I need to do is switch to "percentage" in the STYLE option:
What I ended up of creating this customized labeling is detailed below for future readers:
Back to the data source, create another field pctg:
round((TagsTotal * 100 / (Select Sum(TagsTotal) From cte)),2) as pctg
for the donut chart, create a new field named my_label
CONCAT(category," (",pctg ,"% )")
add the new field my_label as the Dimension field
change in STYLE to show "label"
Voila!
Very cumbersome but finally kind of working with the rest to be sorted out:
1. The newly created field is not showing up in the right-side panel as an available field and how to modify it?
2. The legend needs to be customized to display two lines instead of showing a pagina

In Pie chart and donuts chart you can only show 20 slices. The chart shows the results in a sorted way. If you do not want to see others, then you have select only 20 data points.
"python (88%)" If you want to show the labels as "python (88%)" you can add a new field and customize the labels as you want.
You can do that by click on "create new field " then "add new field" and then give a name to the new field in formula type the below code:
CONCAT(category," (",percentage_field,"% )")
To use the above formula you have to create a percentage_field also before, in the same way with percentage formula.

Related

How to display sheet(s) on dashboard using navigation?

I'm creating a dashboard on Tableau and I want to have a set of navigation buttons that correspond with the sheets I've created. When a button is clicked I want the corresponding sheet to be displayed on my dashboard instead of navigating to the sheet itself. I want all of the sheets to be displayed in the same place on my dashboard. For example, If button 1 is clicked I want sheet 1 to be displayed on my dashboard. If button 2 is clicked I want sheet 2 to be displayed on the dashboard in the same place. I'm new to Tableau and would appreciate any help with this!
The easiest way to achieve this is using parameters.
As a first step you need to creat a parameter with a list of values matching the number of worksheet, like: Worksheet 1, Worksheet 2, etc...
Then you have to create N calculated fields in order to check if the "actual" worksheet is the one "selected in the parameter", using "ok" and "ko" as results for your filters, keeping just "ok".
The formula could be something like this (assuming you're doing the CF for the 1st worksheet, and the other ones differ just for the value):
if parameter = 'Worksheet 1' then 'ok' else 'ko' end
Doing so, all you're worksheets will present data just one at a time because all of them but the one matching the valus in parameter will be blank.
Then you can create your dashboard putting a vertical (horizontal as well if you like) container in it which will be the the "place" where you'll drag all your worksheets.
Be sure to NOT modify the spacing and height of them; just le tableau handle that for you, otherwise the trick won't work.
Once you're finished you will end up having a container with N worsheets in it, with just one of them dysplayed at once.
Once you'll become familiar with parametr actions, you will no longer need to have the parameter displayed on the dashboard (show parameter) because using a worksheet connected to the parameter values you will be able to decide the value of the parameter via click on your additional worksheet acting like a series of button (woeksheet 1, worksheet 2, etc...)

Format output of formula field (which is used in charts etc.)

The output of my formula field is typically formatted like this:
Output of formula field
In my details I can switch this format to a number without any decimal points or thousand points:
Format in details without points
The problem is, that this changed format isnĀ“t displayed in the diagrams or cross tables later on:
Format failure in diagrams or cross tables
How can I fix this issue?
Thanks in advance!
Formatting charts can be confusing because of how varied the layout can be for each different type of chart. I find its is easier to format the display of a chart when you are previewing data on the chart because the layout for the chart in design view may not match what is output at runtime. While previewing the report you should be able to click on any value or label on the chart to select the object. You should see the four points around the object that allow you to resize the object once it is selected. Then you can right click on the object and select "Format Selected Object" or "Format Axis Label" on the menu. Then you should see a tab labeled "Number" where you will find options that allow you to control the formatting. The options found here will vary a little depending upon the object selected on the chart. If you need specific help with these options, it would be helpful if you could provide a screen shot of the window.

How to mix bar and lines in Grafana in one chart

How can I display one dataseries as bar and another as a line in one graph like it is used in the last comment of: see last picture
Short answer:
It's not possible (yet) using the Grafana UI, only by hand.
Long answer:
As far as I know there is no way of doing this using the UI switches; you'll have to use the use the "alias or regex" fields below the visualisation configuration.
Prepare your data
Before you start, make sure that your queries A and B retrieve actual data. You won't see your data otherwise and be confused why they're not showing.
Adding fields and values to the aliases
Once you are selecting the correct data you want to display, just add the following on the visualisation section of the graph at the 'alias or regex' fields:
Add 2 overrides, one for each value you want to display using the 'Add series override' button.
Add a "Bars:false" option flag and a "Lines:true" for the value you want as a line.
Be sure to use the exact opposite values for your bars ("Bars:true" & "Lines:false")
Add a 'Y-axis: 2' to the value you want to have on the right side of your graph.
Optionally, you can add a "Z-index: 3" for the value that you want to have on top (I added this option to the line to make sure it's always drawing on top of the bars).
Enjoy
You should now have a nice graph with 2 types of data and visualisations in one; something like this:
For those who were asking in the comment section, yes this isn't available in version 8, however, you can still change the time series visualization to graph(old) so you can set the alias/regex.

Dynamic Title In Tableau

Looking for a solution to how to show All in Dashboard or sheet title. Along with the Title i am adding Country Name in the title. It works perfectly for individual selection but when all countries are selected i need to show All rather than name of all the countries.
The alternative that gives you the most control is to create a worksheet that displays the text you want, and position this worksheet in place of the title on the dashboard.
Same goes for filters and legends. If you don't like how the stock ones behave, make a worksheet that looks and behaves as you prefer, and use that worksheet as a substitute for the stock filter or legend.
There is an easy fix, i had not selected show "All" Values from the customize filter drop down.

Crystal Reports Legends

Is there a way to force a Bar Chart legend in Crystal Report 11.5 to display its objects in a particular order?
For Example, say I am reporting on the consumption of "Bananas" and "Apples" by State. The Bar Chart should display the percentage of people who eat these fruits by county (Percent Bar Chart). The "Apples" percentage always displays on top of the bar chart and the "Bananas" on the bottom. The legend for this graph also displays the "Apple" color first, then the "Banana" color. However, if the "Banana" percentage is 0% the legend displays the "Banana" color first on the legend. This creates a inconsistent report (with plenty of complaints).
I would like the "Banana" color to always display second in the legend. Hope I didn't confuse anyone and any ideas would be helpful.
Try this instead:
1. Right-click to go into the Chart Expert. Go into the Data tab.
2. If it isn't already set to it, set the grouping method thingy on the top right to On Change of
3. Click Order, then Specified Order
4. There are 2 new tabs: Specified Order and Others. Use the first to decide which groups go first and the second to decide what to do with the rest.
Since you're specifying the order of your groups in the chart, Crystal won't try to auto-decide which ones go first. Step 2 may be an issue for your chart depending on how you set it up. In that case, I suggest making a new chart from scratch.
I can't call myself an expert. I hope this helps.
I think I was able to replicate your issue. It is a little strange, but I was able to bypass the issue by changing the chart to one of the other 2 bar chart types ("Stacked Bar Chart" or a "Side-By-Side Bar Chart"). I'd recommend using one of those, or perhaps even a pie chart.