Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I am looking at user data (specifically, how much time they have spent learning by month), and I want to create some groupings. For instance, I have all users and their average consumption, I have a table where I have filtered out bottom outliers, and I want to create a table which includes the top 10% of users by watch time.
To do this, I first created a top 10% threshold:
Next, I created a new table:
And finally 3 measures to get the user count in this table, the total consumption, and the average consumption:
The thing is, my table isn't returning the expected values, as there are many more rows which I have calculated to be in the top 10%. Is there another way of achieving what I'm trying to do?
Many thanks in advance!
Hi @eire23452 ,
Couuld you share sample data and expected output?
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Best Regards,
Wearsky
Hi @eire23452 -there might be a simpler approach that ensures you capture exactly the top 10% without running into the issue of including more rows than expected.You can calculate the total consumption of the top users with this measure
create new tables
Power users =
FILTER(
active_users_all,
active_users_all[Minutes Video Consumed] >= [Power users threshold]
)
You can calculate the number of users in this top 10% group by using a measure
as it is you calculated;
Power Users Count =
COUNTROWS(Power users)
Power Users Total Consumption =
SUMX(Power users, Power users[Minutes Video Consumed])
The average watch time for this top 10% group can be calculated
Power Users Average Consumption =
AVERAGEX(Power users, Power users[Minutes Video Consumed])
If this approach does not fix the issue, it may help to review the dataset and ensure there are no unintended filters or relationships that might be affecting the calculations.
hope this works
Proud to be a Super User! | |
Thank you for your reply! For some reason, when I create the Power Users table with the FILTER function as suggested, it doesn't work. It just returns all of the rows for some reason (nothing is filtered).
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 |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |