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
json12
Frequent Visitor

Comparing multiple rows in same order

I want to compare condition types for each order. There are 8 distinct conditions types.

 

Sales Order #Line Item (on sales order)Condition Type

Condition Status

(Active or Inactive)

11111111111con 1A
11111111111con 2I
11111111111con 3I
11111111112con 4I
11111111112con 2A
11111111112con 3A
22222222221con 1A
22222222221con 2I

 

Output should show:

 

Sales Order #Line Item (on sales order)

Output

11111111111

con 1 - active 

con 2 - inactive

con 3 - inactive

11111111112

con 2 - active

con 3 - active

con 4 - inactive

22222222221

con 1 - active

con 2 - inactive

 

From this, I want to be able to count orders where (con 1 = active) and (con 2 = inactive or con 3 = inactive)

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

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.