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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
)
)
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 129 | |
| 59 | |
| 48 | |
| 47 |