cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## Re: Calculating percentile off of a measure

when i define the temporary table with a variable and then pass that variable to the percentile function, it doesnt work. it appears that this approach only works with an iterator function (e.g. sumx, averagex, maxx)

For example, this doesnt work:

=VAR
Temp_Table = SUMMARIZE(ABSO_Table,ABSO_Table[Date],ABSO_Table[Sim_Run],"Column_4_Percentile",sum(ABSO_Table[RenewableGeneration]))

return
PERCENTILE.INC(Temp_Table[Column_4_Percentile],.05)

it says i need a base table to pass through as an argument to percentile.inc

interestingly though , if i use an iterator function, it works.

No problem with the following:

=VAR
Temp_Table = SUMMARIZE(ABSO_Table,ABSO_Table[Date],ABSO_Table[Sim_Run],"Column_4_Percentile",sum(ABSO_Table[RenewableGeneration]))

return
sumx(Temp_Table,[Column_4_Percentile])

thoughts?

Highlighted
Frequent Visitor

## Re: Calculating percentile off of a measure

i solved it. there is in fact a percentilex.inc function. cant believed i missed it

here is the solution

=VAR
Temp_Table = SUMMARIZE(ABSO_Table,ABSO_Table[Date],ABSO_Table[Sim_Run],"Column_4_Percentile",sumx(ABSO_Table,ABSO_Table[RenewableGeneration]))

return
PERCENTILEX.INC(Temp_Table,[Column_4_Percentile],.05)

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

#### Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors