Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
I need to calculate the median of a column but i'm accessing data trough Direct Query so the median function is inaccessible.
Is there any other way to calculate it?
Greetings
Hi.
In such case you need to calculate median in data source or do it in direct query, so it all depends on what data source you have.
T-SQL, for example, does not have median calculation function, AFAIK, so, you need to calculate it "manually".
Here is some explanation on how to to it and code example, maybe this helps:
https://codingsight.com/calculate-the-median-by-using-tsql/
Good luck 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
3 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
5 | |
4 | |
3 | |
3 |