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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
sheeths82
New Member

MAX VALUE MULTIPLE CONDITIONS

Hi,

I have the below sample data 

sheeths82_0-1650476927761.png

The desired output is in Column I which Im trying to create in power BI, where the values show only for Unique work order and and department combination. The values in Column J is just the standard time multiplied by the qty. - this shows what the time should have been for that work order at that department.

 

If anyone can help with this, it would be appreciated.

Thanks!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new column.

 

Picture1.png

 

 

Desired outcome CC = 
VAR _startdatetime =
    MINX (
        FILTER (
            Data,
            Data[WorkOrder] = EARLIER ( Data[WorkOrder] )
                && Data[Department] = EARLIER ( Data[Department] )
        ),
        Data[StartDateTime]
    )
VAR _condition = Data[StartDateTime] = _startdatetime
RETURN
    Data[StandardTime/Unit] * DIVIDE ( _condition, _condition )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new column.

 

Picture1.png

 

 

Desired outcome CC = 
VAR _startdatetime =
    MINX (
        FILTER (
            Data,
            Data[WorkOrder] = EARLIER ( Data[WorkOrder] )
                && Data[Department] = EARLIER ( Data[Department] )
        ),
        Data[StartDateTime]
    )
VAR _condition = Data[StartDateTime] = _startdatetime
RETURN
    Data[StandardTime/Unit] * DIVIDE ( _condition, _condition )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Worked perfect. Thank you so much for your help!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.