Newbie PQ question

Rovex

New Member
Joined
Jul 17, 2024
Messages
2
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hi, Apologies in advance if this is a bit on the basic side as I'm still trying to figure PQ out!!

I've been given a table of data with FTE amounts for a load of people per month. I have unpivoted it to get it into the format shown below

1721209850867.png


I need to build a chart showing the totals starting per month

1721209884502.png


I've tried putting in a measure using RankX and Filter and Earlier which I found online but couldn't get it to work. Any ideas Excel gurus??

Regards,

Tony
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try the following DAX measure:
Power Query:
FTE Starting:=VAR CurrentDate = MIN('Calendar'[Date])
VAR CurrentStaff = VALUES(Data[PID])
VAR PrevStaff = CALCULATETABLE(
    VALUES(Data[PID]),
    ALL('Calendar'[Date]),
    'Calendar'[Date]<CurrentDate
    )
VAR NewStaff = EXCEPT(
    CurrentStaff,
    PrevStaff
    )

RETURN
    COUNTROWS(NewStaff)
Adjust the table names to match the tables in your data model.
 
Upvote 0
in PQ group by the month column and sum the FTE column
 
Upvote 0

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

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