How to display data for last few days but cumulate records from beginning of time in Tableau - bar-chart

I am building a Bar graph in Tableau to show daily cumulative record since January 2018. Due to number of days elapsed since then, the bars are so crunched that it looks ugly.
That said, how can I only display data for last few days while retaining the actual YTD count.
For e.g. starting January 1st I had 0 logins, February 1st - 100 YTD logins, March 1st - 200 YTD logins, April 1st - 300 YTD logins, and May 1st 400 YTD logins. I want the graph to display bars from May 1st only and show the starting count as 400 YTD logins and not zero.
PS: I am new to Tableau, so please assume that I don't know advanced stuff.

It seems that you are using Fit Width option which forces everything to be shown in your screen width. If so, try changing this to Standard, so that you may have control on the width of your bars and your users can see every month in one viz with a horizontal scrollbar.
If you do not want a scroolbar'd solution, you need to create fixed calculated fields to not get effected by the filters and use those new fields in your graph. At this point you may filter the date automatically (again with a calculated field based on the current date) or make your users manually filter what they want.
We may be in some more help if you can send a sample workbook but also you may play around with LOD expressions, FIXED keyword or simply get your calculations between { and } to fix them globally.

If you manually change the axis range, all table calculations, such as running totals, remain unaffected. You can do this by right clicking on the axis header, selecting "Edit Axis", then selecting the "Fixed" option under "Range", and choosing the dates you want to show.

Related

How to create a table of "Not used time" in spotfire

User wants to see a report of when resources are NOT being used during the work week on average.
Available to me I have a reservations table along these lines:
table
Attached is the picture of how the user would like the data represented. example graph
I think my issue lays in getting the data in the right format, how can I take a reservations table and inverse it so to show all available time in-between two reservations.
I was able to get a Bar graph that showed the average availability of the days that the resource was booked, but it didn't consider days that there was no reservation information, it also did not account for situations where the user had booked for more then one day.
Have you tried making a calculated column?
This worked for me:
1440 - Sum([Duration]) OVER ([StartDateTime])
1440 is the amount of minutes in a day. It subtracts the total amount of 'busy' time in each day from the total minutes in the day.
It is then easy to make a bar chart from this column.
This worked in my testing, but it might run into issues if you put it into practice. Keep me updated!
Table with calculated column, and barchart.

Power Bi Report Builder - Calculating change from last year

So I have 2 datasets. One is stats for year 2022, one is stats for 2021. I want to compare the numbers (totals) for each year in each category. I did this by creating a tablix using the wizard for each dataset. The last column is a measure imported from the data set and it calculates the percentage change from the same total in the previous year. As you see everything matches except the totals highlighted in red. For example, Full-Time Domestic is 18 in 2022 which is down 66.67% from 2021's number which is 54. This is correct, however the total: 284 in 2022 is not down 74.31% from 2021; It is summing the changes. I tried removing the sum() function but it just returns the first number (-66.67%) instead of the actual change. I'm still fairly new to power bi and report builder so I'm not sure how to fix it. I've blurred some info for privacy reasons.
Screen Shot of Tablix

After forcing SSRS to show limit number of records in each page, aggregation is getting calculated on each page, instead of whole group

Hello and Please help me! I-m really stuck.
I have a matrix in which exist two groups of Year and Month. So it shows an aggregation of values of matrix based on Year and Month.
This report was slow. That's why I forced this matrix to show 500 records in each page and I have done this by adding a Parent Group and writing an expression for that group.
The problem is that now the aggregation is done at the end of EACH page instead of the end of group.
for example let's say I run the report for the Year of 2019 and the month of November and there are 3000 records of data which are shown in 6 pages. Instead of having the Sum for my values for the whole month of November, the report is calculating and showing the Sum at the end of each page. But I want to have the Sum just when the month changes, so at the end of the month.
Instead of making your group a parent, add your page break group between your last group and your detail.
Make the page break column as small as possible (I have left it wide in my example)
Your layout will look like the images below (for demonstration I have created pages of max 10 rows)

Dynamically compare columns in a matrix ssrs

I've never done this for a matrix and it's going a little over my head. Trying to make a sales report, and I can do the matrix just fine. The part I'm having trouble with and I haven't been able to find a direct answer for through googling is how to get a specific value out of the matrix.
Here is a picture of it:
Report
What I need is on the far right where it says total at the top. There I need to do another break out (dynamically would be preferred but not required) the first Column would be %change of 2013 -> 2014. Then of course then next would be 2014 to 2015 and so on.
Here is the design view if it helps: Design View
So the sum total of the year compared to the year previous.
I was trying to use iif and max but I think i'm just confusing myself but the expression i have in there is:
=Sum(iif(Max(Fields!Year.Value)=Fields!Year.Value,Fields!glamt.Value,1))
Just from my testing I got no idea what values it's pulling for that.
Something I've used before is to create a variable of the SUM of previous period, in you case year. So =SUM(IIF(Fields!Year.Value = "2017",Fields!glamt.Value,0) added into the Variables section of the report.
Then in a new column within the year grouping, you add your comparison formula;
=(SUM(glamt)-Variables!sum2017.Value) / Variables!sum2017.Value * 100.00
This gives you the percentage upshift/downshift, but you get the idea if you want the actual figure of increase/decrease in sales etc.
One of the downsides of this approach is that the variables will need to be added manually and you may have a large number depending on the number of previous periods you want to compare but should suffice for say the last 5 years.

SSRS Chart Axis

I am self-teaching myself SSRS, but I can't figure out this issue. I am doing a bar chart that shows the number of cases by time group, the different time groups are on the x-axis and include "12AM-2AM", "2AM-4AM", etc. However depending on the day I choose (in the parameter), their is not a case for every time group and so SSRS is only showing those time groups with a case, but I would like it to show every time group from 12AM to llPM and just show 0 when their is no case for that time group. Any tips for this issue?
Thanks!
The simplest method is to alter the properties on the chart. There should be a custom attributes section. Set the 'EmptyPointValue' to 'zero' which should give you the chart that you are looking for.