Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JP-Ronse
Helper II
Helper II

Weeknum and other questions

Hi,

 

Given:

 

2018-01-13 15_37_03-PowerPivot for Excel - Book4.png

 

ReactionTime is a calculated column: =value([Creation Time])-value([Event Date])

WeekNum: =WEEKNUM([Creation Time];21)

 

  1. The DAX reference does not mention 21 as parameter, only 1/2 but it does make a difference, can I assume that the same rules apply as for the Excel formula.
  2. I would like to know how many Px incidents where in a week (x=> 1...4)
  3. I would like to know how many Px incidents where logged within the SLA. The SLA is the ReationTime.

In words,  say that the SLA for a P1 incident = 15 minutes, I want to know the percentage of P1 incidents logged within the SLA.

 

Next, I want to calculate the same figures over the last 5 weeks, the week starts on Monday.

 

Thanks & kind regards,

 

JP

 

 

1 ACCEPTED SOLUTION

Hi Ashish,

 

I found a solution to all my questions.

 

ISO using WeekNum in PQ I used WeekNum in PP and that function has the ISO option.

 

The easiest way to group 5 running weeks was using a slicer.

 

Kind regards,

 

JP Ronse

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Could you share a small sample dataset and show the expected result there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

Glad to meet you here.

 

The data is business confidential, although I can remove most confidential parts, I don't want to take the risk and share it because there is always a way to trace back. Sorry.

 

The good news is that I managed to solve most of my questions by using PQ & PV. It took me some time to get here and, I know,  you would have done it in few minutes but struggling is in most cases the best way to learn.

 

The remaining question is how I can group the WeekNum in a running 5 weeks.

 

The exercise is a SLA (Service Level Agreement) calculation, so I managed to mark in PQ the P1 incidents and calculate if that incident was taken up within the agreed time to do so. Managed that.

 

But my manager also wants to have that figure over 5 running weeks. IOW, say we are now week 7, give the figure over week 3, 4, 5, 6, 7 and next week over 4, 5, 6, 7, 8.

 

Any idea?

 

Kind regards,

 

JP Ronse

 

 

 

Hi,

 

Glad to see you here as well.  I will need some data to work with.  Please share a dummy dataset and also show your result there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I found a solution to all my questions.

 

ISO using WeekNum in PQ I used WeekNum in PP and that function has the ISO option.

 

The easiest way to group 5 running weeks was using a slicer.

 

Kind regards,

 

JP Ronse

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors