Enrich data in power query

Nikojoer

New Member
Joined
Apr 4, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all

Every month I receive an excel file with time registration. The file is a csv file and it needs to be “cleaned” before I can use the data. Therefore am I thinking of making a power query, but I would also like to add some more info to the data – and here is where I need your guys help.

The data does not have date information and do only have accumulated numbers. I am thinking that the power query should get the data form the folder are I will place the files I extract every month. Is it possible to enrich data with a month date for the different months and also to subtract the previous months’ time registrations, so I do not have accumulated numbers?

Thanks.

Br
Nikolaj
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Show us a sample of what your data looks like now. What you want it to look like and where the additional data is coming from. Your request is to vague to offer up any kind of helpful advise without seeing what we are up against.
 
Upvote 0
Thanks for the reply. I have attached an example of the data I receive(AS IS image). Here I want to add the month and calculate the current month time registration (last months accumulated time minus this months accumulated time). I have tried to show an example in the TO BE image.

Can I get power query to clean the data and add the other informations? Or is there another way you will recommend
?
AS IS
AS IS.PNG

I


TO BE

TO BE.PNG
 

Attachments

  • TO BE.PNG
    TO BE.PNG
    26.4 KB · Views: 2
Upvote 0
Next time try to use XL2BB, nobody want to retype your data from the pictures, also could you explain your logic from source to expected result?
The rest I'll leave in @alansidman 's hands

sndtfd021
ABCDEFGHIJ
1Raw data
2
3|Alias Statistik
4Joi-01-2020- 31-01-2020
5Der er ikke filtreret pa godkendte, og ikke godkendte timer.
6Gruppering efter: BrugerExpected
7Statistik udtrukket den 30-03-2020 11:31:25
8NameProjectTimeNameDateProjectTime reg in the monthakk. Time
9name 1Project 174name 1JanuaryProject 11074
10name 2Project 146.5name 2JanuaryProject 12046.5
11name 3Project 1127name 3JanuaryProject 123127
12name 4Project 144.4name 4JanuaryProject 1544.4
13name 5Project 140name 5JanuaryProject 1840
14name 6Project 121name 6JanuaryProject 1221
15name 7Project 150.4name 7JanuaryProject 12150.4
16name 8Project 145name 8JanuaryProject 11245
17name 9Project 14name 9JanuaryProject 14
18name 4Project 216name 4JanuaryProject 2116
19name 5Project 223.4name 5JanuaryProject 2223.4
20name 6Project 221.5name 6JanuaryProject 2321.5
21name 13Project 35name 13JanuaryProject 395
22name 14Project 350name 14JanuaryProject 3650
23name 15Project 331name 15JanuaryProject 3331
24name 16Project 310name 16JanuaryProject 3710
25name 17Project 314name 17JanuaryProject 3314
26name 18Project 312name 18JanuaryProject 3712
27name 19Project 312name 19JanuaryProject 3312
28name 1Project 474name 1JanuaryProject 4874
29name 2Project 58.5name 2JanuaryProject 538.5
30name 3Project 66name 3JanuaryProject 626
31name 4Project 7294.25name 4JanuaryProject 72356
32Total5719.13Total5719.13
33Roller:
34[Admin]
35[Bruger]
36Rettigheder:
37[EnhedsChef]
38[P-leder]
Sheet1
 
Last edited:
Upvote 0
Still need to know where the data in Sandy's Column I comes from. We need to be able to get that data from somewhere. Supply the source of that and be sure to use XL2BB as Sandy suggested.
 
Upvote 0
Sorry for not using XL2BB.


The way I think I should get the information in column "I" in Sandy excel file, is by saying “December 2019” data is my “start” time. From here I will extract monthly data and then subtract last month's figures with the current month figures. So, the difference will be this month registered hours.


I have tried to show it in the excel sheet below.


Timereg. 01.2020.csv
ABCDEFGHIJKLMNOPQRSTUVWXY
1Alias Statistik
201-01-2020 - 31-03-2020ExpetedFolder
3Der er ikke filtreret på godkendte, og ikke godkendte timer.NAME DatePROJECTTime reg in the monthakk. Time
4Gruppering efter: BrugerName 1dec-19Project 130
5Statistik udtrukket den 30-03-2020 11:31:25Name 2dec-19Project 140
6NAME PROJECTakk. TimeName 2dec-19Project 250
7Name 1Project 140Name 3dec-19Project 250
8Name 2Project 160Name 1dec-19Project 350
9Name 2Project 260Name 4dec-19Project 350
10Name 3Project 270Name 5dec-19Project 340
11Name 1Project 360Name 1jan-20Project 11040
12Name 4Project 365Name 2jan-20Project 12060
13Name 5Project 350Name 2jan-20Project 21060
14Name 3jan-20Project 22070
15Roller:Name 1jan-20Project 31060
16[Admin]Name 4jan-20Project 31565
17[Bruger]Name 5jan-20Project 31050
18Rettigheder:Name 1feb-20Project 1343
19[EnhedsChef]Name 2feb-20Project 11070
20[P-leder]Name 2feb-20Project 2363
21[Alle tider er i timer/hundrededele]Name 3feb-20Project 21585
22v. 5.2.5.5032 30-03-2020 11:31:34Name 1feb-20Project 3363
23Name 4feb-20Project 31075
24Name 5feb-20Project 31565
25
26
27
Timereg. 01.2020
Cell Formulas
RangeFormula
M11:M24M11=+N11-N4
 
Upvote 0
I'll interfere again,
first read my green bottom line
next
my dear friend, to do something you'll need data from previous month(s) also but you posted example from January (source data) only
forget for a moment about expected result but do what you want with source data you posted (and only with this data!). Hope you understand me ?
in short: no data? no solution, no result!

if you've excel file with all data you can share this file via dropbox, onedrive or any similar and post link to this file here

@alansidman : I apologize for interfering
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,892
Members
449,194
Latest member
JayEggleton

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top