Forum Discussion
Applying a Percentile on a Graph
- 4 years ago
Hi felixthecatx ,
According to your description, 1045 data, 95 percent, 1045 * 0.95 = 992.75, that is, take the data after 993, if according to my previous method, when more than one duplicate value, may be all selected.
like below:
In my opinion, if you want to reach duplication with only one random peer, you need to create auxiliary index rows to ensure that 5 percent is 1.
insert index:
Then adjust measure to the below:
test1 = VAR RANK1 = RANKX ( ALL ( 'Table' ), CALCULATE ( SUM ( 'Table'[value] )+0.0000001*SUM('Table'[Index]) ) ) VAR MIN1 = CALCULATE ( COUNTROWS ( 'Table' ), ALL ( 'Table' ) ) * 0.05 RETURN IF ( RANK1 <= MIN1, 1, 0 )final:
Best Regards
Lucien
Hi felixthecatx ,
According to your description, 1045 data, 95 percent, 1045 * 0.95 = 992.75, that is, take the data after 993, if according to my previous method, when more than one duplicate value, may be all selected.
like below:
In my opinion, if you want to reach duplication with only one random peer, you need to create auxiliary index rows to ensure that 5 percent is 1.
insert index:
Then adjust measure to the below:
test1 =
VAR RANK1 =
RANKX ( ALL ( 'Table' ), CALCULATE ( SUM ( 'Table'[value] )+0.0000001*SUM('Table'[Index]) ) )
VAR MIN1 =
CALCULATE ( COUNTROWS ( 'Table' ), ALL ( 'Table' ) ) * 0.05
RETURN
IF ( RANK1 <= MIN1, 1, 0 )
final:
Best Regards
Lucien
This is great, thank you!