YoY growth in Tableau - tableau-api

I am trying to get YoY percent growth in Tableau. I would like to see 2015 Jan Unique customers vs 2014 Jan Customers and so on and so forth till the last set of data.
When doing this in Sample super store, I get the following viz.
What I am looking is for a continuous view where the years are not broken down. Something similar to this:
Any suggestions on how I can get to the final stage.
Thanks

If you just use the year in columns, you should get the desired result (Remove the month from column). If it is still creating issues, you can create a calculated column which just has the year and use it in the visualization. The following link should guide you through the steps (Except its a bar chart, so the year would have been converted to discrete. You should be fine with continuous):
https://www.bounteous.com/insights/2015/09/17/how-make-yoy-bar-charts-tableau/
Hope this helps.

Related

How to correct the order of the year in Qliksense?

My data contain a column showing the year of each record, ranging from 2005 to 2017 I am using the Time Slide extension (https://github.com/caallard/Time-slide) to help me visualize the data. However, the order of the year is problematic.
As shown in the following plot, the first year in the slider is 2006, while the last year is 2005, which means the first year somehow shifted to the last.
I further checked my data. When I uploaded my data to the Qliksense, the preview of the data in the data manager window looks like the following. The year is not in the right order. Perhaps this is related to my question.
I would like to learn how can I fix this. Thanks.
Edit
I have a workaround for now. There are two tables in my Qlik sense both have a column showing Year. Previously I linked these two tables with the Year column. I just deleted that link, and reference my time slide to the Year column from the other table. The sequence of the year in my time slide is normal now.
Here is the preview of the year column from my other table. The order of the year is normal, and I believe since I added this column to my time slide, the order of the time slide is normal accordingly.
However, the original year column I showed before is still in the wrong order. This is strange.
Edit 2
If I select the Time Slide extension in edit mode, below is the available under the Dimension. For the Sort by Numeric and Sort by Alphabetical, they both have three options: No, Ascending, and Descending. However, switching between these options does not affect the order of the year in Time Slide.

Tableau create a filter with several values in one option

I made a year over year percentage difference of some value in a pivot table. It works ugly: If Year=2018 is selected, the percentage is treaded as 100%. If I choose Year IN (2018, 2017), I can see the proper percentage diff for Year 2018 compared with 2017 treaded as 100%.
One idea I have is to create a radio filter that works like this:
If a user selects Year=2018, I want to show data for Year IN (2018, 2017). So actually two values are selected. The table pivot part with 2017 year is hidden though.
This should work for several Year options.
Is this possible?
What you are looking for are all the years whose difference to the argument is at max one year. So if you choose 2018 as argument, you want to choose 2018 and 2017 from the data, if you choose 1997 you want 1997 and 1996.
So, create a parameter [Date Argument] for your target year. Then create the condition:
DATEDIFF('year',[Date],[Date Argument]) = 0 (OR 1) and add it to the view.
However, I believe what you are trying to do could be more easily achieved using a table calculation.

PowerBI: How to display/filter row tables between 2 years dynamically

I was wondering if there's a way where I can filter out my table results based on two years. My table A has date column and many miscellaneous columns. So currently I would like the table A to display January 2018 (or 1/1/2018) and December 2019 (or 12/31/2019 --basically ongoing) information. However, once January 1st, 2020 appears, I would like my table A to display row results between January 2019 and December 2020. Is there a way I can do so? Maybe in DAX or clicking some filter option? Could someone show me? I'm still fairly new to PowerBI.
Thanks
The easiest way to meet this requirement is usually using the Relative Date Slicer or Filter functionality:
https://learn.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Not sure if any of those options will meet your scenario. Maybe Last 12 Months (Calendar)? Your requirements description didnt make much sense to me - you probably need to explain "ongoing" and "appears".
If the Relative Date functions dont meet your needs, then you'll need to construct a column (in Power Query or DAX) that returns a static value you can use in a Slicer or Filter.

How to find last month of rolling year in tableau?

I have a requirement in which I have to show the data of last month of each year. So I used a max_month LOD expression which is working fine for all the years except rolling year. My rolling year ranges from Aug 2017 to July 2018. Now when I am using max_month filter for rolling year it is showing me the data of december 2017, but in actual I want to show july 2018. What will be the right approach to fix this?
I am not sure even if your formula worked, its missing basic syntax, and based on your explanation table calculation is missing the Computation logic.
Implemented the same at my end and below is the logic.
Formula to be used:
If MAX(MONTH([Order Date]))=WINDOW_MAX(MAX(MONTH([Order Date])))
THEN 'TRUE'
ELSE 'FALSE'
END
For this table calculation you need to compute along year and corresponding dimension and reset at every year (I guess you are missing this in your current logic).
Let me know how it goes

EOM date for various months

I'm looking to get a snapshot of inventory for the latest date of each month.
I.E.
Feb 13
Jan 14
Feb 14
There are duplicate variables - i.e., "a" will be listed several times each month. I need to get a.) the sum of each month (easy), and b.) the snapshot of the last date available.
Part B.) is what I'm having trouble with. I've seen the EOM excel formula - but it requires entering (current, following month, etc.). I just want the formula to spit out the inventory Quantity for the last date of each month, without having to specify which month (current, following, etc.).
Any ideas?
Thanks!
I'm assuming that your data is structured something like this:
http://i.stack.imgur.com/mF3h0.png
If that is the case, you can use a formula like this:
=VLOOKUP(EOMONTH(A12,0),$A$2:$B$5,2,FALSE)
Where A12 is the month you want to find the answer for. So the full sheet looks like this:
http://i.stack.imgur.com/GR5ok.png
As you can see, the formula that I put into cell B12 and then just dragged down is pulling back the correct values for the end of month inventory count. Just populate column A with the month-year you are searching for.
Hope this helps!