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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors