Forum Discussion
ChristianDLS56
3 years agoFrequent Visitor
Maximum Value of a Dynamic Measure
Good day everyone! Would anyone know how to create a measure that returns the maximum value of a dynamic measure?
Example:
| MARKET | SALES | UNIT | UNIT/SALES |
| A | 20 | 5 | 4 |
| B | 10 | 2 | 5 |
| C | 30 | 5 | 6 |
| D | 50 | 2 | 25 |
| E | 15 | 3 | 5 |
| F | 20 | 10 | 2 |
| TOTAL | 145 | 27 | 5.37 |
**note that sales, unit, and sales/unit are measures and respond to whatever is showing in the market field
**Market field is linked to a filter so values are changing
What i want is to have a measure that will return the value 25. Let me know if this is possible. Thanks!
try this measure
Max sales = VAR _max = MAXX(ALLSELECTED(Tablename[Market]),[Measure]) RETURN _maxThanks,
Arul
try this measure, Measure = MAXX(ALLSELECTED('table'[MARKET]),[UNIT/SALES])
3 Replies
- Arul
Super User
try this measure
Max sales = VAR _max = MAXX(ALLSELECTED(Tablename[Market]),[Measure]) RETURN _maxThanks,
Arul
- Ahmedx
Super User
try this measure, Measure = MAXX(ALLSELECTED('table'[MARKET]),[UNIT/SALES])- ChristianDLS56Frequent Visitor
This is amazing Ahmedx , you're a lifesaver