Forum Discussion
Display Percentiles
- Anonymous3 years ago
Hi sanchid ,
Please have a try.
Create a table first.
Table 2 = SUMMARIZE('Table','Table'[Industry])Then create a measure.
SCORE——m = VAR _1 = SELECTEDVALUE ( 'Table 2'[Industry] ) VAR MIN_POINTS = MINX ( FILTER ( ALL ( 'Table' ), 'Table'[Industry] = _1 ), 'Table'[Points] ) VAR MAX_POINTS = MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Industry] = _1 ), 'Table'[Points] ) VAR _re = ROUND ( DIVIDE ( ( MAX ( 'Table'[Points] ) - MIN_POINTS ), ( MAX_POINTS - MIN_POINTS ) ) * 5, 0 ) RETURN VAR _minvalue = MINX ( ALL ( 'Table' ), 'Table'[Points] ) VAR _maxvalue = MAXX ( ALL ( 'Table' ), 'Table'[Points] ) VAR _re11 = ROUND ( DIVIDE ( ( MAX ( 'Table'[Points] ) - _minvalue ), ( _maxvalue - _minvalue ) ) * 5, 0 ) RETURN IF ( _1 = BLANK (), _re11, IF ( _1 <> BLANK () && _1 = SELECTEDVALUE ( 'Table'[Industry] ), _re, BLANK () ) )How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi sanchid ,
Can you give an example of the output you want?
How to Get Your Question Answered Quickly
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous, apologies. Below is my desired output without any filters.
| Account | Industry | Points | Score |
| ABC | Aerospace | 1000 | 4 |
| DEF | Manufacturing | 1200 | 5 |
| GHI | Software | 900 | 4 |
| JKL | Aerospace | 700 | 3 |
| MNO | Manufacturing | 1000 | 4 |
| PQR | Software | 700 | 3 |
| STU | Aerospace | 500 | 2 |
| VWX | Manufacturing | 800 | 3 |
| YZ | Software | 700 | 3 |
| AAA | Aerospace | 300 | 1 |
| ABB | Manufacturing | 600 | 2 |
| ACC | Software | 400 | 1 |
| BST | Aerospace | 100 | 0 |
| CAD | Manufacturing | 400 | 1 |
| SEJ | Software | 300 | 1 |
Let's say if I filter for Aerospace industry from the dashboard filtres, I eventually want to display the following.
| Account | Industry | Points | Score |
| ABC | Aerospace | 1000 | 5 |
| JKL | Aerospace | 700 | 3 |
| STU | Aerospace | 500 | 2 |
| AAA | Aerospace | 300 | 1 |
| BST | Aerospace | 100 | 0 |
So if we carefully look at the output difference between 1st and 2nd case, for example, account "ABC" gets scored 4 in overall picture, but gets a score of 5 when filtered for specific industry. So I want this relative score to change dynamically based on any filters applied.
The calculation for score is as below:
- Anonymous3 years agoNot applicable
Hi sanchid ,
Please have a try.
Create a table first.
Table 2 = SUMMARIZE('Table','Table'[Industry])Then create a measure.
SCORE——m = VAR _1 = SELECTEDVALUE ( 'Table 2'[Industry] ) VAR MIN_POINTS = MINX ( FILTER ( ALL ( 'Table' ), 'Table'[Industry] = _1 ), 'Table'[Points] ) VAR MAX_POINTS = MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Industry] = _1 ), 'Table'[Points] ) VAR _re = ROUND ( DIVIDE ( ( MAX ( 'Table'[Points] ) - MIN_POINTS ), ( MAX_POINTS - MIN_POINTS ) ) * 5, 0 ) RETURN VAR _minvalue = MINX ( ALL ( 'Table' ), 'Table'[Points] ) VAR _maxvalue = MAXX ( ALL ( 'Table' ), 'Table'[Points] ) VAR _re11 = ROUND ( DIVIDE ( ( MAX ( 'Table'[Points] ) - _minvalue ), ( _maxvalue - _minvalue ) ) * 5, 0 ) RETURN IF ( _1 = BLANK (), _re11, IF ( _1 <> BLANK () && _1 = SELECTEDVALUE ( 'Table'[Industry] ), _re, BLANK () ) )How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.