
James Heaney Regalado
New Member
Members
Dashboards
Power Query
Power Pivot
Dashboards
Power Query
Power Pivot

Forum Posts: 1
Member Since:
August 11, 2023
August 11, 2023

I was about to ask the question, but worked out a solution first so thought I would share. For MEDIAN, there isn’t an if/ifs equivalent. You can put an IF inside the MEDIAN function, =MEDIAN(IF(criteria,array)) but this workaround fails if there’s an even number of entries. A workaround I found online was putting the data into a pívot table, adding it to the data model, and using DAX function instead.
However, I’ve found a better workaround by using FILTER. =MEDIAN(FILTER(array,criteria))
Is there any other functions that don’t have an ‘if’ equivalent that this might work for?
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Tracy English, David Panthol, Mohamed Touahria
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
David von Kleek
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Ashley Hughes
Herbie Key
Trevor Pindling
Forum Stats:
Groups: 3
Forums: 24
Topics: 6528
Posts: 28594
Member Stats:
Guest Posters: 49
Members: 32817
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
