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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.