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.
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
I can't reproduce your issue. I tried a similar forumula as yours. It can return correct result.
Can you share some sample data?
Regards,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |