Forum Discussion
DAX - Percentile Calculation at different granularity
Hi VahidDM ,
Thanks but it returns blank as it doesnt seem to calculate percentiles at Monthly/City grain
2366
Try this:
for City:
PERCENTILEX.EXC(Sheet1,[Margin],.5))
For Country :
CALCULATE(PERCENTILEX.EXC(Sheet1,[Margin],.5),removefilters(Sheet1[City]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- 23664 years agoHelper I
VahidDM that worked partially but it appears the filter for month is also being removed.
I need the percentiles to be reset for every month/year
- VahidDM4 years agoSuper User
Do you have any Date table? what is the source of that Month Column?
Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/- 23664 years agoHelper I
No, I do not have an explicit Date table. I am using the inbuilt date hirearchy "Month" column in the visual