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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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