Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, I am using power querry for data processing and I need help getting the difference between rows.
I have a table that has the following rows and columns:
Country Code Region Stage Start_Date Index
| China | 1 | Asia | 1 | 11/4/2019 | 0 |
| China | 1 | Asia | 2 | 12/4/2019 | 1 |
| China | 1 | Asia | 3 | 10/24/2020 | 2 |
| Spain | 2 | Asi | 1 | 12/24/2020 | 3 |
I want to add an end date column for each phase, and for phase 3 i want it to have a date of 12/31/2025. I want to eventually join this to a table of all of the months so that I can count how many employees i need each month.
Can you help me do this using power query within excel?
Hi @Anonymous
Please follow Greg_Deckler and edhans 's suggestions, provide more details.
As i assumed, if "Stage" from your table refers to "phase" in your statement,
and your requirement is like stage1,2,3 have different end dates,
then you could add conditional column like the following:
As for another requirement: "count how many employees i need each month",
Do you mean to count the employees who are between start date and end data?
Best Regards
Maggie
sss
Hi @Anonymous
Can you be a bit more specific? For example:
I attaching more data, please see the guildlines for sample data below. The table you provided was not easy to get into a file.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum
@Greg_Deckler - I'm not Imke (not even close!), but there are a lot of us here to help on Power Query too. 😊
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |