cancel
Showing results 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

Frequent Visitor

## Show those employees with consecutive values below a certain value

I would like to know how to show those employees that have score below target value (ex. 2.75).

1. 3 consecutive weeks below 2.75

2. 4 consecutive weeks below 2.75

2. 4 consecutive weeks below 2.75 in the last 6 weeks

Should be based on the slicer value also (number of last nth weeks).

1 ACCEPTED SOLUTION
Community Support

I just want to show which employee has reached the limit. Certainly you can change it to yes or no

Target is a measure to show the certain value like 2.75 in your example.

You can alse download my pbix. file I attached below to see more details.

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 REPLIES 4
Community Support

Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

Best Regards,
Community Support Team _ kalyj

Community Support

According to your description, I create a sample.

Here's my solution.

Create a measure.

``````3 consecutive =
VAR _MAX =
MAXX ( ALL ( 'Table' ), 'Table'[Week] )
RETURN
IF (
SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Week] = _MAX
&& 'Table'[Employee] = MAX ( 'Table'[Employee] )
),
'Table'[Score]
) < [Target]
&& SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Week] = _MAX - 1
&& 'Table'[Employee] = MAX ( 'Table'[Employee] )
),
'Table'[Score]
) < [Target]
&& SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Week] = _MAX - 2
&& 'Table'[Employee] = MAX ( 'Table'[Employee] )
),
'Table'[Score]
) < [Target],
1
)
``````

Get the result.

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Frequent Visitor

hi @v-yanjiang-msft , appreciate the time you alloted on this inquiry. I'm not sure though what does the 3 consecutive column do? What I want to know is to identify which employee has a.) 3 consecutive weeks with below target score (ex. 2.75). Also not sure what is the value you've set for [TARGET]. Please advise. Thank you.

Community Support

I just want to show which employee has reached the limit. Certainly you can change it to yes or no

Target is a measure to show the certain value like 2.75 in your example.

You can alse download my pbix. file I attached below to see more details.

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors