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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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