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

Measure to filter duplicates from another column taking highest value

I'm looking at the bandwidth usage across circuits and in many situations (not all) I get 4 rows per interval for a single circuit.
The ingress and egress on the ports at either end.

I need to keep all 4 rows for different purposes and am slicing the date rage but for this visual I just want to show the highest usage for the date range defined by the slicer. 

 

In the example data below I'd only want to display the row in red.

How could I easily filter this either with a measure or a new column in the table or combination of both?

 

DateInitialDestinationDirectionMax UsageAverage Usage
1/03/2020ABIN5.324.25
1/03/2020ABOUT4.451.2
1/03/2020BAIN4.481.46
1/03/2020BAOUT5.654.24
1/02/2020ABIN8.164.25
1/02/2020ABOUT4.481.2
1/02/2020BAIN4.521.46
1/02/2020BAOUT8.484.24
1/01/2020ABIN5.22.97
1/01/2020ABOUT7.451.89
1/01/2020BAIN7.461.59
1/01/2020BAOUT5.252.42

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@SuzanneNZ , based on what I got , a new column and measure

 


New column =
vat _max = maxx(filter(Table, Table[Direction] ="OUT"),[Max Usage])
return
if([Max Usage] =_max,true(), false())

 

New Meausre =
vat _max = maxx(filter(allselected(Table), Table[Direction] ="OUT"),[Max Usage])
return
countrows(filter(Table, Table[Max Usage] =_max))

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

Hi,
Thanks that's halfway there and works for a single circut where the OUT value is the highest with changable date ranges.   For multiple circuits where the IN might be the highest is only picking up one circuit.

For the larger table below I'd want to report the two line is red for February.
Date Initial Destination Direction Max Usage Average Usage
1/03/2020 A B IN 5.32 4.25
1/03/2020 A B OUT 4.45 1.2
1/03/2020 B A IN 4.48 1.46
1/03/2020 B A OUT 5.65 4.24
1/02/2020 A B IN 8.16 4.25
1/02/2020 A B OUT 4.48 1.2
1/02/2020 B A IN 4.52 1.46
1/02/2020 B A OUT 8.48 4.24
1/01/2020 A B IN 5.2 2.97
1/01/2020 A B OUT 7.45 1.89
1/01/2020 B A IN 7.46 1.59
1/01/2020 B A OUT 5.25 2.42
1/03/2020 C D IN 4.53 4.25
1/03/2020 C D OUT 4.25 1.2
1/03/2020 D C IN 4.48 1.46
1/03/2020 D C OUT 5.65 4.24
1/02/2020 C D IN 11.59 4.25
1/02/2020 C D OUT 10.59 1.2
1/02/2020 D C IN 4.52 1.46
1/02/2020 D C OUT 5.98 4.24
1/01/2020 C D IN 5.2 2.97
1/01/2020 C D OUT 2.86 1.89
1/01/2020 D C IN 7 1.59
1/01/2020 D C OUT 5.29 2.42

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.