I have a data looks like that
i would like to create a side by side bar chart (will be three bars per each month) one bar to shows the count of orders created during month, the other will be the count of orders dispatched during this month and the third will be count of orders received during this month. the point is that I have to show the values based on the year that the user will choose from a filter.
i can do each measure as one chart but i tried to do it in one side by side bar but i couldn't ... can you please help me
here is the work book
https://community.tableau.com/thread/333776
See this thread create side-by-side bar chart in Tableau
Pivot three fields with dates and it will solve your problem
Related
I am trying to create a side-by-side bar chart where one set of bars is a count of open tickets by each week and the other set is the count of closed tickets by each week. The fields are all in a flat table.
For example, if 17 tickets were opened during week 2 (week beginning Sunday, 1/03/2016) and 14 were closed that same week (regardless of when they were created), I'd like to graph those on the same bar chart.
I am using the Week(Opened) function for the dimension of the first set and Week(Closed) as the dimension of the 2nd set. These work fine on separate bar charts. However, there is no common dimension whereby I can put them on the same chart.
I'd like to add a line to the chart as depicted in the 1st screen shot. This line is on a third scale/dimension.
I have tried a Master Calendar but my results are erroneous possibly due to the fact I have two date dimensions.
Sample Bar Chart with line added
Sample data screen capture
You will need to create a canonical date field - the full details can be found here.
https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date
Essentially you generate a single calendar table from the two date fields and then use the new date generated in your charts.
I'm working on Tableau for rainfall data.
I have a cumulative rainfall data for a year (and the months respectively) of different cities.
And I prepared a tableau barchart for the annual rainfall data.
So, if I hover/click my cursor on any of the bar then a line chart which carries the months of that particular city need to be visualized.
Please suggest.
You have to using compulsory Action Filter.
choose dashboard menu -> Action->add action.
Create another worksheet with the line chart month view you would like to see.
Then go to Worksheet>Actions>
Add Action > Filter and Select how you want it to run (hover/select)
Select your new worksheet as the target sheet
Target filters on the year which displays the months you want in the new view
You might need to mess around with these setting to get it how you want exactly but an action is the way to go.
Is it possible to have a Sub-Chart?
So, I have a line chart of data, On the vertical access is the user ,and on the horizontal ,displays the total data by month, what I'm trying to do is, if you click on a month , I want it to breakdown per week on horizontal axis, with the user on Vertical axis?
I known you can drill down, by selecting a field from the dropdown and selecting a chart.
But that's not giving me what i want.
Is this possible ?
No, it's not possible to do that in easy way.
I would suggest a work around:
Make additional chart to show (users x weeks) - you can call it a subchart.
Teach users to use charts like this:
Click on the chart (users x months) to pop it out from the dashboard
to see view+chart
Click on the month (that would filter the view to show only the data of selected month)
Using chart selector change the chart to show (user x week).
This would give the same result as the drilling you have described but with additional 2 mouse clicks.
I am using Tableau desktop 8.1.
I have created a pie chart showing Shift timings and number of employees in each shift timings under different departments.
The pie chart is as follows :
Shift Timing as the "Color mark"
Count distinct employee as the "Angle mark"
I have created an action filter whereby clicking on a shift timing in the Pie chart will display another sheet which shows various details of the employee under that particular shift time.
I have used Action Filter where the field i have passed to the target filter is "Shift Time".But i am not able to add the Department Field as a target filter to the Actions Filter as tableau desktop displays an error "Missing fields on Pie chart".
I need to pass the Department also to the Action filter ( but it is not present in the pie chart) as the user might select Multiple departments from the given list of Departments and the report should show the
My requirement is that if the user selects Shift time (for e.g 9am-5pm) and four departments then upon clicking the 9am-5pm shift in the pie chart should display the details of employees under those departments.I am not able to achieve this because i am not able to pass the Department as target filter into the Action filter.
Thanks and Regards
A little bit difficult to understand without seeing your actual workbook.
If I understand correctly, you want do display a pie chart, and when I click on a segment of the pie chart, you want to display a list of employees under that segment (shift time), but you also want to filter the department.
What I would do is to create a dashboard with 2 sheets, 1 with your pie chart, and one with the employee names/ids (simply drag employee name/id field to the rows and that's all). On the second sheet I would include a filter using department field.
Back on dashboard I would go to the pie chart sheet, click on the gray triangle on the top right, and select "Use as Filter". Then I would go to the other sheet, click the same triangle, go on Quick Filters and select the department filter. And voilĂ , the user is able to filter departments on the right of your dashboard, and click on the pie segments to select a shift.
Hope it helps
I have another way to resolve this issue.
Dashboard->Action->add action - >
I am a beginner in iReport and I cant program Java so I hope you can give me an idea.
I've already managed to make a chart that displays how often all customers have ordered in february, march,... etc.
Thats how I did it:
In category expression I have: $F{Month}
In value expression I have : $F{count(Orders)}
But I want to display how often only one customer (for example customer a) has ordered in february, march,... etc.
I have the following values which i can use:
Month, Orders and Customers(here are all customer names saved)
-------//-----------UPDATE--------------//-----------------------------------
I want to display a chart which represents the total orders per month of a customer. But iam trying to display my 3 customers (my database has only 3) in only one chart (stacked).
For example(see picture above): I want to display the total orders from Customer A (yellow) in february. And I want to display the total orders from Customer B (blue) in february and the same for customer C.
The customers should be displayed stacked (3 in every month) and every customer should have a different color plus the total orders from every customer should be displayed ...like in picture above for example:
customer A(yellow) made 3 total orders in february, Customer B(blue) made 2 total orders in february, customer C..etc.
it is very important that every month displays 3 customers...stacked.
How do I do this?
I appreciate every idea.
From what I have understood from your question, you want to show a chart which represents the total orders per month of a customer.
You need not use stacked bar graph for this purpose.
You may want to use bar graph which would serve your purpose.
If you want to see the chart per customer, create one parameter $P{customer} and pass it into your query.
Refer document iReport-Ultimate-Guide-3 on how to create parameters and to use it in queries.
e.g:
select customer,month,count(orders)
from <your table>
where customer=$P{customer}
group by month
The above approach would work if you want to see the details for only one customer.
**Here is my solution after your update.**
From your update, it seems like you want to represent the total orders per month for all the customers.And you want to use stacked chart for the same.
Then what you have done is correct but have missed to add a field to your 'Series Expression'
Add your field customer to your series expression and this will resolve your problem i.e,
Series Expression : $F{customer}
Category expression : $F{Month}
Value expression : $F{count(Orders)}
This will display the chart in the format you have specified.
Create a paramter that takes your customer name $P{customerName}
and another takes month $P{month}
pass these two paramters to your sql like that
SELECT customer_name, order_count FROM customers
bla.. bla..
WHERE customer_name=$P{customerName} and month=$P{month}
then create a chart with only one serie to show one customer as one color. Not like yours with 3 colors.
Fell free to ask for more specific detail.