I have two stack chart divided by year and the stack chart is divided by two values. I want to show percentage difference between the year among the values. I have tried using calculated field and dual axis but get stuck after adding one field. Let me attach a snapshot for more clarification. In the image I want to plot below two calculated field in the stack chart as well to show percentage difference between the year.
Related
I want to add a stacked chart but could not find a way to customize the time-axis.
Currently my x-axis refers to days, however, I search for a way to display years. Since I want a stacked chart that changes over time, I believe I need to use the 'Time Stack Chart' (see screenshot). I would also be happy with simply several stacked bars next to each other (each bar represents one year), but the 'Bar Chart' only supports one bar (I believe).
My model collects data from different sources on the last day of the year and then my chart should display this value for the year, categorized by source. I have tried with different data sets, both where the time is the horizontal value and where it is not.
When I use a dataset where one value is 'Years' (through the getYear() function) this works fine for plots, but not when I want to have a stacked chart (which by default depends on the time).
Is there a solution to this?
Please let me know if you need further information!
You need to go to the appearance part, time axis format, set it to yyyy. Also in the scale section, you need to change model time units to years.
I am trying to create a stacked bar chart between 2 dimensions (one being week, other is a string - more below) and 1 measure. I am new to Looker.
But in order to get the stacked bar chart I figure that I need to
Create a pivot
Transpose the data
Create stacked bar chart
I am stuck with step 2 and 3.
The above steps is what I have thought could help me arrive at the visualization I want but would appreciate if there is any other solution for this.
Scenario:
I have a digital marketing data with me, where I am trying to create a visualization on ‘Leads’ generated,
I have 2 dimensions, 1 measure
Lead Created Week - Week on which a lead was created
Reason2 - reason a lead was created or what reason attracted the user most
Leads - count of leads
I have plotted the below visualization where I have created a pivot of week with Reason2 and Lead count under it and have plotted it on a stacked bar chart (as below).
Where each bar is a Reason (X-axis) and each color is the Week dimension, leads (count of leads) is in the Y-axis
Even though this is help what would be helpful is having ‘Week’ on X-axis, ‘Leads’ (count of leads) on Y-axis and ‘Reasons2’ dimension as a legend.
There is also one catch i.e., there are more than 100 distinct values in ‘Reason2’ field but I need to pick on Top 10 Reasons (i.e., the reasons that generated the most leads), which in the above screenshot I have achieved by limiting the display rows to 10 as the measure was already sorted.
I tried to flip around the pivot by having reason in pivot and Week as dimension, but if now the pivot is sorted in alphabetical manner and not by value of measures (screenshot below), I need the top 10 reasons which most leads per week.
How do I achieve the desired visualization of having week on X-axis with leads on Yaxis but only the top 10 Reasons should be generated.
I built a gantt waterfall chart in tableau to represent sales difference over time. I want to add columns in the beginning and end, to show the total sales before and after the sales difference occurs.
http://image.slidesharecdn.com/howtocreateatableauwaterfallchart-120307010026-phpapp02/95/how-to-create-a-tableau-waterfall-chart-9-638.jpg?cb=1376818931
You could do a dual axis to get this, with the ending total value on the second axis... *might need an LOD calc to exclude the slicing dimension for the bar on the one axis.
Or, you could create two sheets and align them side by side on a dashboard to do this.
I am completely new to Cognos, so sorry if I don't state some necessary information. I can't go into specifics about my chart, but here is the background:
I have a SQL code running into my Query
My chart and list use the same Query and have the exact same fields
My chart is a basic line graph
When I change my aggregate function to total for my y-axis, then I can see the data points
I do not want to use an aggregate function (I need to see all the points for my x and y-axis)
My x-axis is only one object, but it has multiple y-axis values within a year (which is my series). Ex:product-cost-year list,
where my product is the x-axis, cost is the y-axis, and series is year.
How can I get my chart to appear with all my data points? Eventually, I would like to add an upper and lower confidence interval to this chart.
One way to solve this issue is to create another column that simply counts the number of products (1,2,3,...9). We will call this column count. Keep all your fields the same (product for x-axis, cost for y-axis, and year for series). You will want to add count underneath product on the x-axis. You should see your mouse pointer turn to a horizontal line and it will place it under and to the right of product. Make sure not to place it just to the right of product.
I'm aware of how to create a dual-axis chart using two different measures for the Y-axis. Is there a way for me to create a dual-axis chart using a same measure but on two different range in the dual-axis? For example, I have a column which contains revenue, I want to create a dual-axis chart where one axis has revenue for Year 2013, and the other with revenue for Year 2014.
Edit: my aim is to create a line chart for revenue Year 2013, and bar chart for revenue Year 2014, on the same chart. See picture below is what I have done to have FY13 and FY14 values for each month and running monthly cumulative.
Now what I wanted to do is to have the two FY13 bar charts to be line charts superimposed on their corresponding FY14 bar charts.
I attach also my Tableau workbook that creates the charts above in the first tab.
https://dl.dropboxusercontent.com/u/5548442/StackOverflow%20attachments/FY13%20vs%20FY14.twbx
Yes, this is possible.
Drop the measure in the row shelf.
Then grab the same measure with Control key pressed and drop it again on the row shelf.
You will have two instance of the same measure on the row shelf.
Right Click the second measure on the row shelf and click dual axis.
Right click the axis on the worksheet and Edit axis to your choice.
Let me know if this solved your problem.
EDIT
Create 2 calculated feild:
If [FY] = "FY13"
then [Value]
end
call it- 2013
and
If [FY] = "FY14"
then [Value]
end
call it- 2014
Then just do as i have done in this image.