Forum Discussion
Percentile 33 based on a summarized table
- 2 years ago
Hi nicoenz
Use PERCENTILEX.INC like this:
Production Percentile 33 by Product = PERCENTILEX.INC ( VALUES ( Production[Product] ), CALCULATE ( SUM ( Production[Production] ) ), 0.33 )Also, if you create a measure for Production Sum (which I would recommend) e.g.
Production Sum = SUM ( Production[Production] )then you can write:
Production Percentile 33 by Product = PERCENTILEX.INC ( VALUES ( Production[Product] ), [Production Sum], 0.33 )Does this work for you?
Regards
- 2 years ago
Hi again nicoenz
Apologies, I was caught up yesterday.
You could reformulate slightly and create a measure like this:
Production below 33rd Percentile = VAR Percentile33 = CALCULATE ( PERCENTILEX.INC ( VALUES ( Production[Product] ), [Production Sum], 0.33 ), ALLSELECTED () ) VAR ProductionBelowPercentile33 = SUMX ( VALUES ( Production[Product] ), VAR Prod = [Production Sum] RETURN IF ( Prod < Percentile33, Prod ) ) RETURN ProductionBelowPercentile33Does this work for you?
Regards
Hi OwenAuger ,
How can i now retrieve the summarized table with all values below that percentile value? 🙂
nicoenz Glad the percentile measure is working for you 🙂
Did you want to create a visual similar to that in your original post, but just showing values below the 33rd percentile?
i.e. Products G & E in this example.
- OwenAuger2 years ago
Super User
Hi again nicoenz
Apologies, I was caught up yesterday.
You could reformulate slightly and create a measure like this:
Production below 33rd Percentile = VAR Percentile33 = CALCULATE ( PERCENTILEX.INC ( VALUES ( Production[Product] ), [Production Sum], 0.33 ), ALLSELECTED () ) VAR ProductionBelowPercentile33 = SUMX ( VALUES ( Production[Product] ), VAR Prod = [Production Sum] RETURN IF ( Prod < Percentile33, Prod ) ) RETURN ProductionBelowPercentile33Does this work for you?
Regards