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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to make a Median with a filter

I currently am finding the average of revenue per patient, but my boss is looking for a median revenue per patient.

 

Currently what I have is:

AvgRevenue Per Patient = [Revenue] / 'Fewer Discounts'[Count of Invoices]
Count of Invoices = DISTINCTCOUNT('public view_transactions'[invoice_key])
 
Not sure how to go about getting the median of the revenue of per patient.
 
Help!  Thanks in advance
1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @Anonymous 

In DAX there is a formula for it

https://docs.microsoft.com/en-us/dax/median-function-dax

 

Also in some visuals there is a direct way to see Median

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

1 REPLY 1
aj1973
Community Champion
Community Champion

Hi @Anonymous 

In DAX there is a formula for it

https://docs.microsoft.com/en-us/dax/median-function-dax

 

Also in some visuals there is a direct way to see Median

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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