Forum Discussion
Percentile table like Excel
Hi everyone,
I am trying to create a percentile table in Powerbi but having trouble doing that.
Below screenshot shows the Excel version:
From this we can see that my percentile jumps from increaing by 0.01 at 0.05 to 0.05 at 0.10.
So I created a "Enter Data" table in PowerBi and pasted this column values:
This allowed me to create a table in PowerBi with the percentile values I wanted to use but I encountered a problem after this step.
I have 2 tables,
stats table - contains Total Sale & Cost
size table - where I have size of place
These 2 tables have relationship.
Now I don't know how to use PERCENTILE.INC to create a table as per first screenshot.
I hope my description is clear, if not please let me know.
Thanks for your time.
Kind Regards,
Rahul
McCow Thanks for explination, I have tried to follow the same steps for prod data and there seems to be issue.
Could you point out what I am doing wrong please? Here's the updated pbi file: https://1drv.ms/u/s!Aghc93erq8rBcUhH5N_y1X_MXN8
I have created 3 new tables exactly in the same structure:
size_prod, stats_prod, Persentille_prod
Thanks again for your time, patience. I am learning alot from you!Kind Regards
16 Replies
- Greg_DecklerCommunity Champion
Nope, sorry, not clear. What is the problem you encountered? What is the final result you are looking to achieve? Can you post sample data from your second table? How are the tables related?
- micky123Frequent Visitor
Hi Greg_Deckler,
The final result I am looking to achieve is like this:
Table 1
Date ID Sales Cost 01/01/2017 40505 114 357 02/01/2017 72878 901 416 03/01/2017 36370 463 3810 04/01/2017 41006 740 2805 05/01/2017 57904 987 3220 06/01/2017 45632 157 2348 07/01/2017 33843 856 2135 08/01/2017 71400 537 2159 09/01/2017 74717 289 1483 10/01/2017 77747 973 1922 11/01/2017 60239 830 2107 12/01/2017 65054 633 3405 13/01/2017 44939 326 1584 14/01/2017 71789 655 1328 15/01/2017 40704 558 3636 16/01/2017 68804 668 3165 17/01/2017 41137 99 138 18/01/2017 47474 759 516 19/01/2017 46244 748 1534 20/01/2017 26707 797 3943 21/01/2017 45512 427 1924 22/01/2017 74276 639 2995 23/01/2017 75824 605 390 24/01/2017 47363 495 3676 25/01/2017 72470 685 3021 26/01/2017 48808 94 2736 27/01/2017 32450 66 1238 28/01/2017 48837 213 921 29/01/2017 46723 857 378 30/01/2017 56503 776 2414 31/01/2017 50555 530 3044 Table 2
ID Size 40505 980 72878 7600 36370 420 41006 19000 57904 2100 45632 610 33843 2600 71400 420 23441 150 23471 5800 23478 4500 23488 3100 23554 800 23568 12000 23576 950 23586 2100 23607 7300 23662 90 23678 200 23702 1200 23715 5500 23751 430 23764 2900 23941 3800 24013 520 24224 620 24227 11000 24244 1800 24318 960 24333 120000 24334 370 24456 530 24487 2500 24498 410 Relationship is on ID columns.
Thanks for your time.
Kind Regards.
- micky123Frequent Visitor
I have done some research and found out that this is the dax I need to use to calculate percentile but not sure how to adapt it for each percentile group: = PERCENTILEX.INC(<table>, <expression>;, k)
Does anyone know how I can have a dynamic value for "k"?
Thanks
- AlanPhanFrequent Visitor