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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

@Anonymous , Yes.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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

@Anonymous , Yes.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors