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
Anonymous
Not applicable

Calculation to only apply to one of duplicate rows

My data occasionally has 2 rows for the same date/flight number/route. I already have an index column (unique id) and I have created a column concatenating the 3 columns thinking this might help me.

 

In another column 'Flight sector funding' I have a calculation which applies a $ amount based on certain conditions. My issue is that I only want this to apply to 1 of the 2 rows with the same date/flight number/route, and not both. 

1 ACCEPTED SOLUTION

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , A new measure

 

Sumx( Summarize(Table,[date],[flight number], [route], "_1", max(Table[Fund Amount])) , [_1])

Anonymous
Not applicable

Is 'Fund Amount' the same as my 'Flight Sector Funding'?

@Anonymous , Yes.

Anonymous
Not applicable

Thanks this did what I needed it to. Unfortunately I have other issues with the way my report has been set up so I still have more work to do!

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.