how to freeze values of column in Tableau - tableau-api

I want to create a scattered plot of users usage across Month.
whenever I filter users only relevant values appear i.e if user A has used a report in Jan Feb mar and Sept only those values appear on columns tab.
I want all the months displayed on the column and then a scatter plot on it(row being Number of Records)

Try going to Analysis/Table Layout and selecting Show Empty Columns.
Note: If you're using a secondary data source, this functionality is disabled.

Related

Tableau not displaying the correct figures when trying to compare and visualize data

I've joined 2 data sets together, one of 2016 olympics and 2020 results and I want to create visualizations and compare the two "total" amount of medal values for each country.
When adding attributes to the sheet to create a visualization of my data, I want to compare the total amount of medals from both years for each country, it displays the Rio Olympic data correctly but when I then go to add the 2020s Olympic "Total" data figures to compare, it doesn't display the total figure for the 2020 Olympic data, I made sure to include all the figures but still doesn't display correctly.
It does the same when I do it opposite with displaying 2016s data first, it doesn't show 2020s data so the issue is not the data as far as i'm aware.
Data sets joined
Showing data displaying correctly
Added 2020 Olympic data but doesnt display correct figures
2020 Olympic data should display Canada figures
2016 Olympic data should display Canada figures
This looks like an issue with your join relationship between the two data sets.
What does Tableau show when you are using just one source - remove the other source entirely.
Also, looking at your data, you'd really benefit here from unioning the sets together
Steve

Power Bi Clustered Column Chart to show % or row total

I am using Power Bi to produce several reports, one of it is the NPS score for support. However, I am coming across an issue with the clustered column chart. It is showing the value against the total number rather than for each row.
What I want to see if the following (within Excel),
The NPS score is shown as a percentage for each week.
e.g. Week 3 has the Promoter at 95.5% and Detractor at 4.5%
However, when using Power Bi, I am shown the following, which is a Percentage of the grand total, instead of each week.
Using a Matrix, I could see the following as total numbers.
I can copy this Matrix and show it as a Percentage of each Row, which is also correctly showing the results.
I have the dates already set up using a feeder table to allow me to get the week number etc from a date within the main raw data, so they sort in the correct order..
My Chart is using the following table entries
Cal Week and WeekNo are both from the feeder table (Fiscal)
Net Promoter and Count of Case Num are from the RawData table.
How can I get the chart to show the percentages per week instead of the total?
I am also planning to use slicers to filter down further, for example, Regions (which are in the RawData).
I believe I will need to add an extra column to the RawData, but no idea what to put in it and then how to use that in the chart, and still allow it to slice.
Any help would be greatly appreciated.
Thanks
DD

Tableau: Graph X on month with different year as colored lines

I'm trying to recreate the following Excel-created graph in Tableau. My data has traffic organized by month-year Eg., 01-01-2016, 02-01-2016 ...etc. for each year. Would changing the data format be required, or can I work with this as is?
I'm following the tutorial here but the closest I can get is:
There are two ways to accomplish this easily.
1. Change the marks card type from Automatic to Line.
Use Show Me (upper right) and select the icon for the line chart.
Additionally, here is some information on Discrete vs Continuous Pills which cause many new users confusion.
Discrete = Distinct buckets like apples, oranges, peaches, etc
Continuous = Any values on an axis like percentage, sales, etc
For dates, discrete dates are parts of the month like days (1, 2, 3...), months (Jan, Feb, March...). A continuous date would be Jan 2019, Feb 2019, etc (these are truncated dates because they include the entire date starting from earlier in time to later in time.
In the picture, the list in green is continuous and the list in blue is discrete.

tableau dual axis multiple variables

Hi I have some insurance data and I am trying to put multiple variables on my map but got stuck. I am using tableau public in my desktop.
To understand what I am plotting, I am interested in if the data is Direct or Agent and if the data is HO3 proudct or BC product. How my data is set up is one column is Direct HO3, another Direct BC, Agent HO3 and another Agent BC. It is broken down by zip with corresponding county.
I tried to use dual axis but with 4 combination first dual layer is Agency (HO3 & BC) and my second dual layer is Direct (HO3 & BC). I need help either putting 4 of these data by using color shelves or hide the second graph as shown. The two charts are the same but I can't get 4 data plotted at the same time. I can't seem to put all 4 columns of data plotted with 1 dual axis chart. All of my data are measures no dimensions except zip code and county column. I do think it has to do with how my raw data is but I am not sure how to modify my raw data so tableau will plot the way I need.
I created hide/un-hide fields to hide data that has 0 HO-3 policy count or 0 BC policy count. Second picture is from my raw data.
Looking at your dataset one thought that will work is you can pivot all 4 columns that you are planning to view on the sheet.
Create a chart with pivoted values and then drop the pivoted field name on to the color which will differentiate your measures and show to user

Custom x-axis values in Power BI

I want to plot a graph over a year+weeknumber on the x axis.
Each data-point contains this specific value; for example week 7 of 2016 is expressed as 201607 etc. and called YearWeek
I created a date table in which I calculate all possible YearWeek value in a certain date-range. Then I created a YearWeek table extracting all distinct YearWeeks.
This I connected to the Fact-Table. What I want to chart is exactly according to this matrix:
Note that I explicitly selected to show items with no data to obtain the full time line. It continues down to 201852 but you get the picture.
When I attempt to plot this, it results in this:
It's hopefully clear that the straight lines running from 201652 to 201700 and 201752 to 201800 are the problem.
There's three things to note:
I explicitly need to keep the x-axis continuous, no gaps in the plots or x-axis values skipping several weeks for lack of data.
PowerBI somehow does not want to accept that these values count to 52 and then continue in the next year and decides to make the values strictly numerical despite these values not existing in the YearWeek dimension table.
If I change the values to text, PowerBI recognises that these are distinct categories, but it won't provide a continuous axis, just the values for which there is data.
I've tried to connect the YearWeek Dim table to an actual Date Dim table hoping that time intelligence would kick in; the problem is that both for the Fact Table and the Date Dimension table the YearWeek Dim is the unique value which won't work given the filter-direction. If I start messing with many to many relationships or bi-directional filtering I'm out of my depth.
How to fix this?