How to visualize time frame ranges from string text type in tableau - data-visualization

I have tried changing the year ranges to a numeric type to get a visualization of how many years in business into a pie chart so that there is a slice for each range. I have tried using count as well but get error message. help pls

Try just selecting the field 'Years in business' and count(table name) together and click on pie chart option on show_me (ctrl +1) tab.
You pie will be built automatically.
If you desire to divide the pie slices according to some other measure select that instead of count(table) alongwith years in business while clicking pie chart option on show me.

Related

How to zoom chart specific area in Excel Using Macro

Hy Everyone,
I have a sheet with chart that has many values with X-Axis. These values are many in numbers some time I feel difficult to view them, So I want to zoom the any area of the chart by selecting any where in the chart. I used recorded macro that only zoom sheet not Chart / Graph. But I want a macro that can zoom any specific area of the chart or graph any where I click or select..
Here is pictures of the sheets...
My suggestion is to limit the x-axis (minimum and maximum) and probably limit the max value of the y-axis. This way it will only show a part of the data within the chart which might result in a better resolution to view then. But there is no built-in zoom like you described. Therefore you will need to code that on your own.
(Sorry for the german screenshot …)
As you see in the example above. I have total data in x-axis from 0 to 450 and in the second chart I limited the x-axis from 100 to 200. Both charts have the same source data, but the second only shows a part of the first.

PowerBI Dynamic Time Series BarChart

Adding on my previous question here: TimeSeries question
I would like to plot a unit capacity chart over a Time series (which contains a range of dates set by the user).
The chart I am trying to plot is as follows:
For each Unit Name, I have start and end date for the unit capacities, as shown in the PowerBI table as below:
4 sub questions:
How to plot these capacities over time? Maybe using some DAX functions?
Do i need the SSAS cube to solve this problem or can I do all the work inside PowerBI desktop? If not, is there a better way for example in SSRS?
Is there a way to make the x-axis time series dynamic as specified by the user?
Adding to this, after Leonard's response. After converting the OutageStartDateOrig, and OutageEndDateOrig values I tried to create the calculated column as suggested in the youtube link {enter link description here}. However, the DAX formula as shown in the video gives out a syntax error for me stating that the '.' is incorrect when specifying the range of dates. Any ideas for this? [Screenshot below]:
To create such a visual, I'd recommend an area chart (or stacked area chart) with the date on the axis, the unit name on the legend, and the capacity on the values. You could also do it as a stacked column chart too. However, then each date will be broken into discrete columns. See below image.
In terms of data manipulation, you'll need to convert the data with the date ranges you have above into a row for each individual date & unit. E.g. the first row, instead of being 11/2 to 13/2, would be expanded into 3 rows, one for each date.
You can do this in Power Query as you bring the data into Power BI Desktop, or in DAX after bringing it in. There are several solutions to this outlined in this thread (https://community.powerbi.com/t5/Desktop/Convert-date-ranges-into-list-of-dates/td-p/129418), but personally, I recommend the technique (and video) posted by MarcelBeug (https://youtu.be/QSXzhb-EwHM).
You'll also want an independent list of dates (with no gaps) to join the final date column to - otherwise your visual will skip dates when no units had capacity. By default, the chart will begin on the first date with data and end on the last date with data, so in that sense it is dynamic, but you can add a date slicer to give the end-user more control.
Area chart on top, column chart on bottom, date slicer on right filtering Jan-Mar.

How can I populate a SSRS Chart with a calculated field?

I am trying to populate a bar chart in SSRS using the following calculated field:
=COUNT(IIF(Fields!JobDeployment.Value <"1440",1,Nothing))/Count(Fields!CaseStatus.Value)
To explain it is the amount of tasks that have taken under a day to complete divided by the amount of tasks.
This is then attributed as a percentage each month and the end game would be that these percentages are in a bar chart.
Now when I select my bar chart with the Values series being the above calculated field it doesn't return any values
The data is correct in the table so I'm happy with that but when I want it in graph form, I am getting no results.
Could someone please be kind enough to give some pointers as to why this is the case
Thanks
Dan
If you're using Visual Studio (as opposed to Report Builder) you should get an error message explaining why it didn't work. The expressions you can use within charts are limited. Instead, you can have the logic done at the dataset level and leave the aggregation to the chart.
Add a calculated field to your dataset to check your condition.
=IIf(Fields!JobDeployment.Value < "1440", 1, Nothing)
In the chart, just compare the counts.
=COUNT(Fields!FilteredJobDeployment.Value) / Count(Fields!CaseStatus.Value)

SSRS Number value and percentage in One char

I have a chart in excel that desplays number values and line graph in percentage.
Any idea on how I can display the percentage in SSRS.
Please note I can do it individualy in two separate report in ssrs but I want to combine the two. Please see attached image
the bar chart are in Values while the line graph is in percentage
Many thanks
To plot a series against a secondary axis, as in your Excel example above follow the instructions from MSDN regarding secondary axes.
To plot a series on the secondary axis
Right-click the series in the chart or right-click on a field in the Values area that you want to display on the secondary axis and click Series Properties. The Series Properties dialog box appears.
Click Axes and Chart Area, and select which of the secondary axes you want to enable, the value axis or the category axis.
Hopefully this is what you require. Please let me know if your require further assistance

SSRS dynamic pie chart error

I have a query that gives this output (this is a result from a udf, the denseRank is created as an filter for the pie charts, only this denseRanks stays as 1,2,3.. as the number of scenarios can be changing, so if I had 3 scenarios, there would be 6 lines with denseRank 3 at the bottom. for each scenario, there are always these 2 lines, capex and opex with cost):
Now I'm creating a set of pie charts that gives the percentage of capex and opex costs for each scenario.
So for example in the first pie chart, I've set the filter in category group properties as denseRank=1 as this is for my first scenario, see picture below. Similarly, I've set denseRank=2 in my second pie chart as it is for my second scenario.
And in the series label properties, I have the label expression as this (dataset2 is where the query that creates the above table):
I have a bunch of other settings like, show label as percentage with no decimal, piestartangle=270 etc.. Now I run my report and it is giving me this: the problem is the portion looks right, but the label is showing the the percentage based on the overall cost, but it really should be the percentage within each scenario, so for example 21% and 79% for scenario 1.
Is there any setting/function that I need to add? any way that I can get the right percentages without adding additional query/dataset to do the pie charts individually?
Sorry for the long post, really appreciate if you can help!!
got it figure out...
label expression to use sum iif denseRank=1, also use cdbl to convert non-integer to .00