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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
uniqque2008
Frequent Visitor

Please help with SUMMARIZE and removing extra line

I am using a SUMMARIZE to aggregate the data and create a table with a unique list of Vehicles assigned to a Plant.

However, i am getting 2 lines for same Fleet number, where Plant changed within the same month.

 

I am struggling to remove one of the lines based on the Max Availability column, which is the number of minutes allocated to a Plant during the month (this example Date field = Month).

 

Result i am loking for is retaining the SECOND (617760) line and removing First (12690 mins) 

 

problem.PNG

 

Please help, as i am getting nowhere fast.

 

1 ACCEPTED SOLUTION

@uniqque2008 ,

 

As a general suggestion, you can firstly achieve the opposite table using SUMMARIZE() function, then use EXCEPT() function to achieve the result table.

 

Community Support Team _ Jimmy Tao

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

Yes i understand that. I need Maintenance Plant. Is there any way to kepp Plant and also do what I need?

@uniqque2008 ,

 

As a general suggestion, you can firstly achieve the opposite table using SUMMARIZE() function, then use EXCEPT() function to achieve the result table.

 

Community Support Team _ Jimmy Tao

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

can you share some sample data?

rocky09
Solution Sage
Solution Sage

You will get Two lines unless you remove Maintenance Plant.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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