Forum Discussion

KenDazzo's avatar
KenDazzo
New Member
10 years ago
Solved

Medianx function returning blank

I am currently using the following formulas to create a the measure "Median Days in Ship Queue":

 

Median Days in Ship Queue = MEDIANX(DISTINCT(Shipping[Order_key]),[MEDIAN DAYS IN SHIP])

MEDIAN DAYS IN SHIP = MEDIAN(Shipping[Days_In_Ship_Queue])

 

However, when I put the measure into a card to display it in Power BI Desktop, it returns "(BLANK)".

 

I thought that the medianx and median function ignored blank values. I was just hoping to understand the issue. Please can someone shed some light on this for me?

  • What happens if you do this:

     

    Median Days in Ship Queue = MEDIANX(DISTINCT(Shipping[Order_key]),Shipping[Days_In_Ship_Queue])

     

    ?

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    What happens if you do this:

     

    Median Days in Ship Queue = MEDIANX(DISTINCT(Shipping[Order_key]),Shipping[Days_In_Ship_Queue])

     

    ?