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.
Can't quite figure out how to calculate running percentile in DAX.
In Excel I used:
=+SUMIF([Rank],"<="&[@Rank],[Percentile])
Any help would be appreciated!
Solved! Go to Solution.
Hi @austin_infinite ,
You might consider creating a Rank using a computed column:
Here are the steps you can follow:
1. Create measure.
Measure =
SUMX(FILTER(ALL('Table'),'Table'[Rank]<=MAX('Table'[Rank])),[Percentile])
2. Result:
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
Hi @austin_infinite ,
You might consider creating a Rank using a computed column:
Here are the steps you can follow:
1. Create measure.
Measure =
SUMX(FILTER(ALL('Table'),'Table'[Rank]<=MAX('Table'[Rank])),[Percentile])
2. Result:
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
Balance, Rank and Percentile, are these measures or columns in your source data?
Those are all DAX Measures.
You are trying to calculate the moving average of a measure based on another measure. Usually this type of calcuation is heavy and is difficult to find an efficient solution. You may try the following. If not feasible then the options are either a calculated column or a calculated table.
Running Percentile =
VAR CurrentRank = [Rank]
RETURN
SUMX (
FILTER ( ALLSELECTED ( Data[Bill_to_Customer_No] ), [Rank] <= CurrentRank ),
[Percentile]
)
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 |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |