SSRS Count indicators active - sql-server

I am writing a report where I have an indicator determined if a person is under a percentage for a certain category of orders. If the person is below threshold, then a big X is displayed by the percentage.
Outside of the group I am looking to put a red flag within the same column for the week to show that if there is at least one X for a category, then this red flag will display.
Mainly I am using this because there are a lot of drop down lists within the report and it will be easier to view if a red flag is displayed instead of a bunch of X's.
Thus, my question: is it possible to select an indicator within a child group in an expression?

Related

Highlighting text and merging queries into single cell on Google Sheets?

I've got a Google sheet that gets data from two different forms. One form is for verifier, the other for shipper. Tabs are at the bottom. The purpose of this Google Sheet is to perform verification of LPNs (serial numbers) scanned/entered into both forms.
Main sheet contains Sales Order #, for which somebody in logistics checks for "Verifier LPNs" and "Shipper LPNs" are a match for eash Sales Order #.
In cell C6 on Main Form I have put together a query function, with text join and array formula to merge the data received from "Verifier LPNs - Form". The verfier person should be able to go back and scan the same "Sales Order #" and enter new LPNs, with data on Main Form getting merged.
I need some help with the following:
-Merging the LPNs entered vertically (even if entered at a different time). New line is ideal, but also, is there a way to adjust row height automatically? Row height only shows 1 line as default.
Query function is not letting me drag it down for others rows while changing the reference to '"&$A$8&"' automatically going down to the respective row in column A.
-Highlighting the LPNs that appear under "Verifier LPNs" if they are not present in the "Shipper LPNs" column. See attached image for how data should look if not present in the "Shipper LPNs" column for that SO #.
Right now, when I submit more LPNs into the form for verifier, they are joined horizontally, I believe this is due to the text join function.
Link to Google Sheet:
https://docs.google.com/spreadsheets/d/1y1JV6rtytn7eQevy3TvFT-gTk75AuMGjnRJPduJrUOw/edit?usp=sharing

Microsoft SSRS - show table group totals outside the tables in a separate TextBox - using Report Items

I have this situation below in Microsoft SSRS 2012:
I am developing a table in which there are 3 groups - City (Innermost Child), State, Country (Parent).
I have totals for two of my groups - Country and State.
Now, our client wants us to show these group totals (State) and grand total (Country) outside the Tablix (Table data region) also but inside the Body of the Report.
I plan to put each State Total inside a separate TextBox outside the Table, but inside the Body of the Report. See below:
Country Total: $ 2,900 (okay)
Texas State Total: $1,400
Arizona State Total: $1,500
For the Country Total, which is fixed inside the Tablix TextBox, I can use Report Items.
But how do I show the State Totals - for Texas and Arizona ?
These values ($ 1400 and $ 1500) obviously cannot be captured using Report Items, since the Sales Amount varies from State to State and there are multiple States.
Is there a way to use Group Variables or something ? Please let me know.
I need to show the below data in a separate TextBox outside the Tablix:
Texas State Total: $1,400
Arizona State Total: $1,500
The report does not use any parameter. This is sort of a dashboard report.
I just had a similar situation. We wanted a separate "total box".
I solved this by creating a second table off the same dataset and simply totaled the data a different way.
The inner programmer in me wants a more elegant way to do this. But it works.
You can use your right tablix twice. Apply the same grouping. Now you just need one column with the total sum on top of this tablix (first row outise group). And below add following expression (next row inside group):
=Fields!State.Value & " State Total: " & Sum(Fields!SalesAmount.Value, "StateGroupingScope")
If you apply now the background color it will look like your in left picture. And if you want to put these two tablixes side by side put a rectangle in your report and in that rectangle put your two tablixes. Importent here is, you put your rectangle in the report and then drag your tablixes into the rectangle.

Why do I see "Blank" or "0" value at the begging of Stacked Column Chart in Power BI Desktop

For some reason stacked column chart displays "Blank" value even though data behind doesn't have any Blank or '0'.
And my X-axis doesnt have "Type" where I can choose between continuous or categorical:
In a data behind I have 12 months, no blank or 0 :
The (Blank) value can occur even though your underlying data set has no blank values. It is because when you have established relationship between tables, and there are other visuals or filters on the same report page, leading to a joining or filter which results in blank values.
It can be hard to pinpoint sometimes, so the easiest thing you can do is to filter it in the Visual level filters as follows:
As for the X-axis continuous or categorical type setting, it is only available when the data type is numerics or date/time. The MonthShort column you're using is just text to Power BI and it has no idea in what way it should be continuously linked. You need to use the MonthNumber or a date column if you want to achieve so.

SSRS Conditional Expression

In SSRS report, I want to perform conditional color formatting where highest rank should be Green and lowest rank should be Red within a Regional Manager group as shown below
Note: Couple of options, I was thinking of includes
I am using custom code function, for deriving Min and Max value, and somehow if I can include grouping filter on Regional Manger then it could work, but don't know if that's possible
In dataset, I create extra columns for each column and store Min\max value in it. But less keen towards this option, since I have 24 different ranks and which would mean, I will need 24 different columns along with current 40 attributes
Any help would be appreciated
I know you don't want to do this for each column, but despite your misgivings it is probably the best approach. Based on my previous answer to your earlier related question you can colour the min and max for each group as follows.
Create a table with fields store, atvrank, and btvrank
Right click the row header, and select Add Group -> Row Group - Parent Group, and choose Regional Manager. Set the Group name to RegionalManagerGroup
Then set the background colour for your cells to
=iif(Fields!atvRank.Value = min(Fields!atvRank.Value, "RegionalManagerGroup"),
"Green",
iif(Fields!atvRank.Value = max(Fields!atvRank.Value, "RegionalManagerGroup"),
"Red",
"White"
)
)
This now finds the maximum and minimum within the current group instead of the whole dataset. You will need to set this expression for each field individually, but this is probably less effort than returning new rows from the database to determine the maximum and minimum for each field.
This approach will give the following output
Please seriously consider this solution. If you have further questions, please just ask.

Any recommendations as to grouping this table in Reporting Services?

I'm just starting with Reporting Services so please take that into consideration.
I'm trying to make a report that groups by Nominee. I also want to group by Nominator i.e. so that if a Nominee has the same Nominator twice then it displays only ONE row instead for two and it increments field Number of Nominations (I get I need to use COUNT() here) and adds the total points of both (which I suspect I need to use SUM() on).
This is my table (on top) and the one I want to display on the bottom.
http://i.imgur.com/DZNoB.png
Notice on the top table that Janine and Rose have 2 different nominations with the same Nominator, therefore on the bottom table they display counts 2 on number of nominations and the sum of the points for both of the nominations.
So far I've tried this:
http://i.imgur.com/LPyiY.png
How can I make it so I can include name, Dept, points and number of nominations in between groups? I've tried inserting text boxes but it doesn't work. Is there a better way to do this?
Also I'm using a Tablix
Just create one group by option that takes the Nominee Name / ID, and display the name.
Within the details section add each nominator name. In the footer of the Nominee Name group just add =COUNT(Fields!NominatorID.Value)
It would end up with something like this:

Resources