How to get only one value in SSRS? - ssrs-2016

This is the values in table1.
I have a data in a Table1 where it is login hours for a day for multiple employees. I am creating a SSRS report and data they want is below
This is the Output i need in the below table in SSRS 2016.
Thank you in advance

If you looking to hide repeating "time" value, then you can use expression for that column:
=IIF(Fields!time.Value = Previous(Fields!time.Value), "", Fields!time.Value)

Related

Excel Power query merging different workbooks

I can't find the solution for the problem described here.
I have an Excel file with sales data of 2020 and another one with data for 2021, with lots of rows, so if I copy paste one below the other in the other Excel, I can't use pivot data because too many rows, so I want to merge my 2 Excel files in this way:
First table:
Second table:
Desired final table (in Excel):
Is there any way I can do that with power query or something else in Excel?
Note: my table doesn't have just Sales 2020 in 2021, but also other data, but for simplicity I didn't include it there (example: growth 2020, growth 2021)
So if anyone can help me I will appreciate it a lot!
I would start with 2 queries, each one would just read the rows from First table and Second table respectively.
Then I would start a new query by Reference to the First query.
In this Output query I would add a Merge Queries step, matching the first 3 columns from the First and Second queries. I would set the Join Type set to Full Outer Join.
Next in the Expand step I would return all the columns from the Second table.
Finally I would add 3 columns using the Conditional Column option, to create merged versions of Name, Surname and Month. For example:
= if [Name] = null then [Second.Name] else [Name]
Finally I would remove the un-needed columns, rename and re-order the columns if needed.

Excel Power Query import of SharePoint List data changes date/time values

I have an Excel file that pulls data from a SharePoint list using Power Query. When I compare the date field values in SharePoint e.g. 4/30/20 8 PM they uniformly appear as 5/1/20 1 AM in the Power Query view. This results in the data being shown in the wrong time periods in pivots, etc. Any ideas what is happening? I am not a DBA or SysAdmin so your patience with this question is appreciated! Thanks.
Check the Datatype of your Date(Time) Column and the query Step like "Change Types".
If there is a little globe left in your column header than the Data-Type is set to Date-Time-Zone.
Change the type to "normal" date/time.

Building timeline using Excel Table?

I'm trying to build a kind of timeline based on a table in Excel. The table has several columns that represent a due date. Column A is considered the key/identifier, Column B is a company name, Columns C through H are the task due dates.
My goal is to hopefully find a way to setup a second type of table that will automatically set the items in order of what key is due when. I've included an img of the table and what I'm hoping the end result would be. I haven't been able to find anything that does this. I was thinking maybe a pivot table but it's not doing what I want.
I'm not even sure if this is possible or not but any help or push in the right direction would be GREATLY appreciated!
Thanks!!
-Deke
You can easily do this with Power Query. Just load the table, sort on date, and select which columns you want

Calculating the difference between the count of two date fields

I have data that is provided to me that includes the routed date and the service restoration date. From that it's pretty easy to generate a pivot table that generates a table with the date of the month, then a count of received tickets (routed), and the count of closed tickets. I'm trying to generate a calculated field (Pivot -> Options -> Fields, Items & Sets -> Calculated Field) to derive the delta.
When I use =Received - Closed, I get the difference in date rather than the delta in the counts. Can anyone point me in a direction on how I may calculate it? If it was static content it would be easy peasy, but I'm not getting the knack of doing this with a pivot table. Also I could achieve something similar with a countif type command and run it from a static calendar type table (which is what I'll probably end up doing if this ends up being a dead end).
As a solution, you can copy the pivot table and paste it as values in the new sheet. Do you math on values instead of on pivot.
I don't know if formatting your results in the pivot as NUMBER would help.. But you can try that as well.
I was unable to determine a way outside of what was mentioned above by Andrew. I've set up a static date list for the calendar month and then use a series of countifs instead of a pivot table to generate the output. Thanks to all who reviewed the question and to Andrew for his responses.

MS-Access Pivot Chart

Could someone help me to sort and arrange the Pivot Chart in MS-Access please. I could do this easily in MS-Excel, but not in MS- Access. I need a gap in between each Task + Budget in MS- Access chart exactly as in MS- Excel. If you put a blank record in Access table, then sorting becomes an issue. Actually the sorting of X axis is not flexible enough in MS-Access and it simply sorts alphabetically. Thanks
This is one way to implement Sten's solution.
Create another column in the query, and union it with the existing data
Select
Replace(Task," Budget","") as TaskGrp,
Task,
Employee,
Amount
From Table1
Union
Select
Replace(Task," Budget","End") as TaskGrp,
Null,
Null,
Null
From Table1
Where instr(Task,"Budget") > 0
Order By TaskGrp, Task, Employee
Then omit TaskGrp when doing the chart
Yeah, what I mean is add the value of a space. " ". Technically the space will show in the graph but no one will be able to see it. You can have an extra column which doesn't go into the graph for sorting.

Resources