SSRS bar chart has column for date that's not in the data - ssrs-2012

I'm creating a bar chart based on the year of the date field. There is no data with a 2019 date. The bar chart includes a year column for 2019. How can I remove this empty column?

You will usually see this when the Axis type is set to Scalar (Numbers/Dates).
There are a few ways to fix this but the easiest are...
if your year values are simply numbers then you can set the axis type to Category via the UI or set the Scalar property to False
If the above is not suitable for you then set the HideEndLabels property to True (also available via the UI on 'Labels' tab)

Change the Axis type to Category.

Related

Why Bar Chart Always Showing 2 Years Value After Using Control Form?

I have a problem in my dashboard because It is always showing Bar Charts with all Values after using control field "Year" like this
I use Year Control Form and set the default in the control field into 2021 like this But it always shows all the values of 2021 and 2022 (like the first picture). But when I choose only '2021' or '2022' on the control form, it shows like what I want (only represent data for that years) like this.
I want to set the default is like the 2nd Picture when First opening the dashboard because it made so many problem in my organization. Here's the link for my dashboard : https://lookerstudio.google.com/reporting/1268a7e6-33bd-4deb-9c37-7abfd73f5126
And here's for the data source : https://docs.google.com/spreadsheets/d/1A_xB97Q25e0hqpkjSQcP9BzakwTUdzIJLUUnMOtBs04/edit?usp=sharing
For information, the bar chart is created by using blended data from 2 tables and also I turn on the cross-filtering where the setting is like this
any solution?

Can I make a circle/table graphic in SSRS and divide it by a passed number

I was asked to create a report (in SSRS visual studio 2019).
The report has the following table number, numeric. How many people per table (generally 4-12), names, etc and the order in which the people will sit. From this I'm being asked to create is a graphic visualization of a circle (broken out evenly by number of guests per table) in the order of which they are seated.
For example here is my data set:
I need to create a seprate page with the lists below so it would like like this
Page 1 would have this:
Table 1 - 8 Guests
Page 2 would have this:
Table 2 - 4 Guests
we can also use embedded images -- the team has an image for each table size but we still have to obtain the locations of each spot (which means we'd have to know how to divide a circle)
You can do this easily.
Add a list or single column table and the set Dataset property to your dataset name.
Change the row group (probably called "details") by adding a group that groups by table.
Now insert a pie chart into the table cell. We should now get 1 pie chart per table.
Click the pie chart and add a value entry, set the value expression to =1/countrows(), this bit will just split the chart up evenly based on the number of guests.
Set the category group to the guest field.
Right-click the chart and "Show data labels", then right-click the label and set the value to this expression =Fields!id.Value & " - " & Fields!guest.Value. Set the data label position property to "outside".
Finally click the chart and expand the "custom attributes" section, set the PieStartAngle property to 270, this will make sure the first person is immediately after the 12 o'clock position.
Oh,. and set the chart title to something like `="Table " & Fields!table.Value"
The final output looks like this...

Is it possible to display dates in power query as MMM/YY and keep it as a date format instead of text?

My problem is that I generated a pivot chart that is showing the axis values as DD/MM/YYYY. I changed the date format for the relevant column in the power pivot manager to MMM/YY and it looks fine in there, it's displayed correctly in the pivot table as well, but not on the chart axis. I'm guessing it's because in the main query the format is stuck as DD/MM/YYYY. I also tried to format the axis to a number & date in the chart, but it doesn't react. Can anyone help please?
pivot table
pivot chart
pivot chart format settings

OBIEE Pie graph - How to always display both actual and percent values?

I've created a pie chart and can see the data labels on rollover. On rollover, l can see the actual and percent values together, but after changing the data label display property from "on rollover" to "Always", It only shows me either the actual or the percent values.
How can I show both the actual and the percent values in the "Always on" data labels?
I've tried to adapt the xml, but I don't know the correct way to do so.
Here is a trick to show both...
But if you want a Legend, you must include the entity Names before the value and percent. The result will be that the pie values will have both the entity/grouping name, actual value (because now, for OBIEE, its part of the enitity name) and the percent.:
First, you must enter the graph properties of the Pie Chart:
Graph Properties (Click the xyz icon at the top-right of the Graph view in the Results tab).
Click Titles and Labels > Data Markers > Display
Ensure that Show Data Labels is set to Always.
Ensure that Display is set to Name and value.
Ensure that Change Value is set to Percentage of total.
Click OK > OK.
Now create a concatenated column and add it to the Pie chart (credit to Miky Schreiber's blog):
Add a new column (call it "concat").
Edit the new column's formula to be the concatenation of the entity--that the pie chart groups/slices by--and its measure value.
This is a string column, so you’ll need to convert the measure into string.
It will look something like this:
LOGICAL_TABLE.ENTITY_NAME || ' ' || cast(FACT_TABLE.MY_MEASURE as char)
Select the checkbox Treat as an attribute column > Click OK.
Now Edit the graph/pie view and in the Layout editor, drag the concat column under Slices and drag the measure under Slice Size. Optional: Select the checkbox Show in Legend.
Save your changes.

SSRS: How to aggregate columns into one in a bar chart

A,100
B,120
C,50
D,20
Plotting this in a Chart produces the correct result: it gives me a chart with 4 columns.
What i want however is to add all these values into one column and have the chart show only one as i will be adding more data series (via lookUp) that will show additional related data.
Can this be achieved?
You can modify the dataset of the report, by summing A,B,C and D instead of selecting each one on it's own.
Try changing the chart type to a stacked column chart

Resources