Count of employee based on months and job grade (raw data doesn't have rows and columns)

Hi @Matthias

Could you please attach the Pbi file with your solution ?
The first code is something completely new for me so I am stuck at this point.
How can I learn about it ? I sm trying to google it but no success.

Many thanks,

Iwona

Hi @Iwona,

Here’s the post that covers this Gouped Running total custom function @Matthias incorporated, you might want to explore it.

For a deeper understanding I recommend taking the Fundametals course in the learning portal.

Cheers.

1 Like

Hi @Iwona
ah, I am sorry, I should have explained about the first code.
That is a custom function. Building it, is indeed something for advanced users.
=> But using it, is something any beginner can do as well. Think of it as just an additional function.
You do not know how to BUILD any of the standard functions in Power Query, but you can use them.

Let’s see if this would help: Duplicate any query, go to the Advanced Editor replace the complete code with the first code. Press OK, and then rename the query fxRunningTotal. I am sure you can do this.

Now, let me also address the second code. The #“Running Month” step is probably the hardest to understand for you. Again, treat it as a ready made function. But you should know what happens there: In this step the custom function is applied and the results of the custom function are integrated at the end of the existing table in a new column “Running Month”. Hope that helps you to understand and to overcome your resistance. Here too just copying the code into the Advanced Editor should do the trick. If you fear to destroy something, just copy the file and try it out then. :+1:

The rest of the code is more standard, but if you have any questions on any of the other steps please let me know!

Thanks,
Matthias

1 Like

@Matthias

I am in process of applying your solution and would like to ask you about: **

:warning: Do not just slice by month name. :blush:

**

Why can’t I slice by month name? What should I use as a time dimension in the slicer?
Many thanks Iwona

@Iwona, there are multiple years.
=> if you only slice by month name you get the results for a month from multiple years.
That is a reporting topic, not a Power Query topic.

Regards,
Matthias

Hello @Iwona ,

Did the responses above help solve your query?

If not, can you let us know where you’re stuck and what additional assistance you need?

If it did, please mark the answer as the SOLUTION.

Thank you

Hello @Iwona ,

Just following up if the responses above help you solve your inquiry.

We’ve noticed that no response was received from you on the post above. In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

Thank you!

Hi @Iwona

Due to inactivity, a response on this post has been tagged as “Solution”.

If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.

We request you to kindly take time to answer the Enterprise DNA Forum User Experience Survey,.

We hope you’ll give your insights on how we can further improve the Support forum. Thanks!