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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
alexumagba
Frequent Visitor

Check multiple comparison

Hi All

I have the following situation to resolve in powerBi Desktop

There is a sales record for 4 different weeks, week 1 to week 4.

I want to create a measure that will check customers whose purchase has drop for four consecutive weeks

This is what I have in mind

if week 1<week 2<week 3<week 4, "Consecutive Drop", "Normal"

How can I go about this.

 

Customer NameWeek 1Week 2Week 3Week 4Drop
000123341232Normal
000223211812Consecutive Drop
000348322119Cosecutive Drop
00049872123Consecutive Drop
0005194378101Normal
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @alexumagba 

 

Try this measure:

Drop Measure = 
VAR _W1 =
    MAX ( 'Table'[Week 1] )
VAR _W2 =
    MAX ( 'Table'[Week 2] )
VAR _W3 =
    MAX ( 'Table'[Week 3] )
VAR _W4 =
    MAX ( 'Table'[Week 4] )
RETURN
    IF ( _W1 > _W2 && _W2 > _W3 && _W3 > _W4, "Consecutive Drop", "Normal" )

Output:

VahidDM_0-1663492753268.png

 

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @alexumagba 

 

Try this measure:

Drop Measure = 
VAR _W1 =
    MAX ( 'Table'[Week 1] )
VAR _W2 =
    MAX ( 'Table'[Week 2] )
VAR _W3 =
    MAX ( 'Table'[Week 3] )
VAR _W4 =
    MAX ( 'Table'[Week 4] )
RETURN
    IF ( _W1 > _W2 && _W2 > _W3 && _W3 > _W4, "Consecutive Drop", "Normal" )

Output:

VahidDM_0-1663492753268.png

 

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors