Forum Discussion
2366
Helper I
4 years agoDAX - Percentile Calculation at different granularity
Hello, I have a data set which is at multiple granularity - Region, Country, City, Daily with Profit as my measure Now I want to calculate percentiles at different grain dynamically. ...
2366
Helper I
4 years agoBoth of them are returning same values 😞
VahidDM
Super User
4 years agoChange Country to this:
Quartile_Country =
VAR _A =
calculatetable(SUMMARIZE( Sheet1, Sheet1[Date], Sheet1[Country], "M",[Margin]),removefilters(Sheet1[City]))
RETURN
PERCENTILEX.EXC( _A, [M], .5 )
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 ago
Helper I
Sorry, that doesn't seem to change either