How to Add "total" column in bar charts in Power BI - charts

So I have sales numbers for two cities , Mumbai and Delhi which are on my X- axis as shown in the picture.
I want to be able to add a new column next to Mumbai and Delhi columns known as "Total" column, which holds the sales numbers for both the cities combined. I have posted the sample picture of how i want it to look below !
Kindly help

Try with dax function, I think its possible.

Related

How to put measures on X-axis and on Y-axis

i'm trying to create simple bar chart in Tableau.
Here example of my table :
country | emissions | population
ES | 3000 | 46M
FR | 6000 | 66M
I want to put value in Y-axis, population in X-axis and the country label associated in the top of each bar. But i cannot do that (Tableau don't allow measures in Y axis and X axis, only one measure is allow).
Here an example of result I have : enter image description here
The problem is that in the Y-axis, I cannot put measure so I convert emissions as dimension but i can't sort by crescent order. And I don't have solutions in order to put each country associated on the top of eache bar...
Here my data (not huge) : https://sendeyo.com/show/a73c58538d
Thanks for advance !
Maybe this is what you're looking for?
Or
Link to sample.

Is it possible to apply different filters to different charts in same Tableau worksheet?

In the following image I have four charts with same measure. Currently all four are exactly same.
I want to add different country filters to these charts. For example, chart 1 should show view only for country 1, chart 2 for only for country 2 and so on. I have data only for 4 countries and current view shows data for all countries aggregated.
Is there any way to achieve this? I understand I can create separate worksheets for different countries and add into the dashboard. But I'm afraid it will mess up the viz. My dashboard is already filled with lot of stuff and I have to adjust this in bottom 20% of the dashboard.
If you have 4 countries in your dataset (US, UK, China, India), and with "country filters" you just want to see that line chart for each one of them, just drag your country column in the rows shelf.
It seems to me that you may not need filters, just another dimension plotted into your worksheet, for the same metric.

Tableau How to show average of column

I have multiple column of survey answers from excel in tableau with the answers being 1,2,3,4,5. I want to show across the average for each column but in singular bar graph. For example row 1 would have a bar chart showing the average for that excel column, row 2 would show the average for its column etc. I would love the name of each excel column (Answer from survey) to be on the left side of the chart. However I can't figure it out since every time I drag the question into the row tab it starts showing (1-5) and doesn't just keep the average of the column. Thanks!
[
After replicating and trying what you described, my suggestions is to drag "Measure Values" (from Measure list on the sidebar) dropping in the "Columns" tray, and "Measure Names" on Rows.
Then use Measure Names as a filter, selecting the questions.
See Below:

Highlight multiple row values based on another value in tableau

I have a table with 4 columns grouped by first 2 columns. Something like below
Company Department Department Rating Org Org Rating Emp Type Employee
A Sales 1 XX 2 External John
Ops 2 XX 1 Hybrid Mike
B HR 1 YY 2 Internal Richard
Dev 3 ZZ 3 Internal Julie
I want to highlight Department and Org based on values in ratings column (1- yellow, 2- red, 3-blue)
Could anyone guide on how to make it happen on tableau?
Tableau by default will only highlight measure values so in order to highlight dimensions you need to trick it a bit.
First, you'll want to create two dummy columns with the formula min(1). You can either create this through a calculated field or just double click and type them in the columns shelf.
In the Marks card for each of the two new measures (not the All card), place Department on the text field in one and Org in the text field of the other. Set the Mark type to be Text on both of them.
Create a calculated field to define the colors. The actual values don't matter here as you'll assign a color to them latter. Put this on the All marks card on the Color Shelf.
At this point, you might have something like...
Now to finish it off you can do a few things:
Double click on the color squares in the legend to reassign them
Change formatting on the measure to get rid of the axis, zero lines, etc
Move the label from the bottom to the top by creating a dual axis.

Show Dimension Headers on Y Axis instead of X Axis

So I have what seems like a pretty dumb question but I haven't been able to find an example online or figure out how to do it myself.
I want to create a visualization with the dimension headers going down the y axis and the values going across the x axis. I'm creating a cross tab/text table kind of visualization. It's just one name, an address, some demographic info. If you try to use each field as it's own column, the info gets pretty cramped. Using the transpose button doesn't work, and dropping the pills on to the row instead of column doesn't work. I've tried changing them from dimensions to attributes, but still no luck. Any tips would be very much appreciated.
Update:
Before:
ColA | ColB|
A | B |
After:
ColA | A
ColB | B
Generally if you want the dimension headers on Y and the values on X, you put the dimension pill on the rows shelf and the measure pill on the columns shelf. You might want to change a dimension to a measure and use a COUNT() or COUNTD() for example to see how many people come from a given city.
If you want to actually display several different measures next to each other (say the number of distinct cities and the number of distinct zip codes) you can drag the "Measure Names" pill on the rows and the "Measure Values" pill on the columns and add or remove the pills you need/don't need.
If this is not what you need, it would be good if you could post a screenshot of your dashboard (including the shelves and the dimensions pane). THat usually helps a lot to see where your problem is.