cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors