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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Robi2
Frequent Visitor

AverageX working but Medianx returning blank

I am trying to get a median value from a Summarize table function, but it's returning blank.

If I switch to AverageX I do get a value back.

 

This is my query: 

On Demand Clicks Median = CALCULATE(MEDIANX(
	SUMMARIZE(Analytics,Analytics[User Token],"On Demand Count",CALCULATE(COUNTROWS(Analytics), Analytics[Event Name]="On-Demand")), [On Demand Count]))

So if I switch to AverageX it does work.

Also this function of summarize also works correctly if I view it in a table.

SUMMARIZE(Analytics,Analytics[User Token],"On Demand Count",CALCULATE(COUNTROWS(Analytics), Analytics[Event Name]="On-Demand") 

 Do you know what could be wrong?

 

Thanks,

Robert

1 REPLY 1
v-sihou-msft
Employee
Employee

@Robi2

 

I can't reproduce your issue. I tried a similar forumula as yours. It can return correct result.

 

777.PNG

 

Can you share some sample data?

 

Regards,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.