cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nftgamesendaya
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).

 

nftgamesendaya_0-1664372583246.png


please advise @amitchandak @Greg_Deckler @v-shex-msft 

1 ACCEPTED SOLUTION

Hi @nftgamesendaya ,

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

vkalyjmsft_0-1664531016858.png

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

vkalyjmsft_1-1664531080954.png

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.

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @nftgamesendaya ,

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

v-yanjiang-msft
Community Support
Community Support

Hi @nftgamesendaya ,

According to your description, I create a sample.

vkalyjmsft_0-1664446423059.png

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.

vkalyjmsft_1-1664446506112.png

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.

 

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.

Hi @nftgamesendaya ,

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

vkalyjmsft_0-1664531016858.png

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

vkalyjmsft_1-1664531080954.png

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.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors