I have a report that looks like the picture below. It is a matrix with person name on the rows and weeknum on the columns. What I need to calculate is the number of weeks that have data in the calls taken column. In the picture below it is the consistency column with the red numbers. I can't seem to get those red numbers to appear. Is there an expression that can count the number of columns that aren't null in a particular matrix. This report will be dynamically generated and the number of weeks will be totally different each time.
I would rather solve this in SSRS because I don't want to mess with my SQL too much but if no SSRS solution is possible I can post my SQL and perhaps solve it that way.
You need to create a column group outside of the last group. So in your example, Right click on the column tab above your efficiency column in the 23rd week. After you create this column, you can use a simple Count(Fields!CallsTaken.Value) in an expression to count the times there are values listed.
Reference SO question on Horizontal Totals.
Related
Hi I'm using a table which has a column Person Name followed by other columns that describes that Person i.e. Height, Age etc. The rows are filled in with the info.
However, some cells for specific people are not filled in therefore I would like to see which Person is missing details and what details are they missing as well as how many People are missing details altogether? Is there a way I can calculate/demonstrate that on Power Bi?
So essentially, count number of rows with at least one empty cell.
Creating a measure like this works for me
CALCULATE(countrows(tablename) , isblank(table(columnname))
I am trying to create a pivot table that I can get the top 10 categories by quarter using the table below based on the numbers. In conjunction, I want to make a pivot chart that will allow me to select what quarter I want to show as well. Is this even possible? Thank you in advance.
I'm going to take a guess that you don't have an answer yet because this is poorly tagged?
Anyway, here's a quick stab, seeing as nobody else has stepped up to the plate yet.
If your data was in an Excel worksheet then you could easily make this into a Pivot Table, simply highlight all the data and Insert - Pivot Table. You would wants your rows to be "Category Association", and then you could add "QTR1" to "QTR4" as "Sum of" items to the "Values" part of the Pivot Table.
To get the top 10 per quarter you would need to click the arrow in the "Row Labels" cell and pick "More Sort Options". Then "Descending (Z to A) by:" pick "Sum of QTR1", then "Sum of QTR2", etc. If you want all four at the same time then make four pivot tables. To get the top ten you would either count the rows manually, or use formulae to present this on another worksheet.
You can make a pivot chart by simply clicking the pivot chart button when you have a pivot table selected. You can then select which quarters to include by ticking/ unticking them in the "Pivot Table Fields" section, but note that this will also affect the pivot table you picked to make into a pivot chart. Again, you might need to make a new pivot table to be used for this purpose?
So everything on your list is possible, it's just a case of trying it I guess?
I am tasked with creating a report in SSRS that can display data covering anywhere from 1 week up to 52 weeks.
What I am trying to avoid is writing a huge query that will pull all 52 weeks worth of data and have it show on the report, unless the user wants that data to appear.
So if the user wants January 1st - February 1st it will only show 6 columns of data instead of all 52 columns. How would I do something like that?
Easy - you need to use a Matrix.
A grid gives you a fixed number of columns and many rows.
A matrix gives you many columns and many rows.
Try this How to Create SSRS Report with Dynamic Columns
Create column grouping on your tablix, for example you have column WEEK and you are bringing data from 1st Jan to 1st Feb.
Column grouping on column WEEK will generate only 5 columns if you have data for every week.
I have a basic report with a one Dataset and one column group.
When I run the report, the column groups shows all the columns I want to see as expected. However, some of the columns, I need to be merged.
For example, I have these columns that all show up, but need to merge to a single column Visa, then report shows the transaction amounts.
Visa Sign, Visa PIN, Visa Tap
How would I merge these columns and rename the main column to just Visa?
My first approach was the modify the dataset query and change anything the payment type to "Visa", but it turns out I can't use update statements since the raw data is still needed for another report.
Next, I tried using Lookups to find anything with "Visa%" and display the the data, but I still can't get the other columns merged to 1.
Any ideas would be great!
I have a tablix in an SSRS 2008 report. It has two-level row groupings, and I'd like the value for the left-most grouping to continue to be displayed on each row. Eg, I get this:
group1 subgroup1 500.00
subgroup2 250.00
... but I'd prefer...
group1 subgroup1 500.00
group1 subgroup2 500.00
I can't seem to find the option for this. Is it a strange thing to want?
Thank you,
Bill
You can simply edit the upper reporting level, to be grouping on both groups at the same time, this will cause your desired behaviour.
I had to resort to this solution once, where "hide duplicates" didn't seem to achieve the desired result.
It's so simple...you have to right click on the cell in the DATA area (ex. where is displayed the value 500) and to click add COLUMN on the left. After this change the value in the new cell with the label field (subgorup1), also do this for the others columns that you want to add, but remember to do it from the DATA area. when you finish, delete the columns out of the data area, but keep the row groups. nice try!
Currently, what I've found to be a good way of determining whether or not the repeated values of a group would show up in a SSRS report, is to create the Groups and build your report based on the groupings. Secondly, take the groups fields and duplicate the column to the right hand side of the report. Making sure that you've included all the columns needed and totals are correct; delete the grouped columns. When you do this, you will get a popup asking if you want to delete the group or just the columns, chose columns - this will keep the format of the initial report and keep all of the total line as well.
If you select the row in question, there is a field called Hide Duplicates. Set this to nothing (null, space, etc) That should return the values you want.
I had this same issue and I solved it really easily.
It seems you have two row groups, by group and by subgroup.
What you have to do is to select the first column and group by group and by subgroup and remove the grouping by subgroup.
That should do the trick.
Put ROW_NUMBER() OVER (ORDER BY name ASC) AS Row# in each query as a serial number and hide the row in the SSRS Report.
See: https://learn.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-ver15