Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I have problem in report where I use Direct Query to import data.
When I was importing data to power BI it was easy for me to calculate number of lines in order and then make average of it on Visualization.
But now I have to use measure. ANd I have it
Solved! Go to Solution.
You may refer to the posts below.
You may refer to the posts below.
Thanks a lot.
I don't understand this way but once I made one mesure counting lines and then another masure making average of this first one, it worked. So problem solved.
Sample data would clearly help here. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
But why can't you just use AVERAGE or AVERAGEX ? Why do you need to count?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 26 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 33 | |
| 24 | |
| 20 |