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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
mdalton
Helper I
Helper I

New Column-Output Default Branch by Max(CountofPatient) by Zip

I have a table with :

1.PNG

 

I want a new column for a Default Branch that will recognize that those top three zipcodes are the same, and will output the branch with the highest patient count per zipcode like such:

2.PNG

 

 

 

 

1 ACCEPTED SOLUTION

I figured it out. I was pulling more values than I thought

View solution in original post

2 REPLIES 2
mdalton
Helper I
Helper I

I tried:

Column=CALCULATE(MAX(Table[CountofPatient]), ALLEXCEPT(Table, Table[Zip]))
But it gave me:

3.PNG

Which does not make sense. I figured I could go from here and add another column where if the count of patients is the same as column, give me branch.

I figured it out. I was pulling more values than I thought

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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