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
I'm trying to calculate the percentile of a value, so dividing a count of the values lower than the row value by a total count of the values. However, the dataset has multiple years, and I want the percentiles to be calculated only within their own year. The code I'm using is;
Solved! Go to Solution.
Thanks a lot for your help.
Just for anyone who has the same issue, the solution that worked for me is a little embarassing; Update PBI.
I'll also follow your advice to see if I can streamline the process as well.
Best,
Hi @maxbradley ,
You can try the following methods:
Could have to do with how you have you data model created in Power BI.
1. You can use Dax Studio to check, use the following link to do it, Find your longest running queries and analyze them.
2. Also related to the format of the datetime:
3. Try disabling ‘Auto date/time’ under Options > Data Load > Time intelligence.
Or
Another way is to go to "Data Cache Management Options" and clear the cache or increase the "Max Allowed" number.
This is the related document, you can view this content:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot for your help.
Just for anyone who has the same issue, the solution that worked for me is a little embarassing; Update PBI.
I'll also follow your advice to see if I can streamline the process as well.
Best,
@maxbradley is that a calculated column. If yes, then try this instead:
AttendancePercentile =
VAR Position = [Attendance]
VAR Acayear = [time_period]
RETURN
COUNTROWS (
FILTER (
'1_absence_3term_geography',
[Attendance] <= Position
&& [time_period] = Acayear
)
)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 25 | |
| 25 | |
| 25 | |
| 16 |
| User | Count |
|---|---|
| 51 | |
| 31 | |
| 23 | |
| 21 | |
| 20 |