Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
)
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 54 | |
| 41 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 106 | |
| 99 | |
| 38 | |
| 29 | |
| 28 |