Forum Discussion
Select max value for dynamic filter
| Type | Mod | Combo | Value | |
| Tre | Com | Tre - O G | 12681.37 | |
| Tre | Com | Tre - R G | 14357.00 | |
| Tre | Com | Tre - R O | 11546.18 | |
| Tre | Com | Tre - O B | 12883.55 | |
| Tre | Com | Tre - O G | 14220.92 | |
| Tre | Tur | Tre - O G | 15558.29 | |
| Tre | Tur | Tre - O G | 16895.65 | |
| Tre | Tran | Tre - O G | 18233.02 | |
| Filter on Combo | ||||
| Type | Mod | Combo | Value | Max Value |
| Tre | Com | Tre - O G | 12681.37 | 18233.02 |
| Tre | Com | Tre - O G | 14220.92 | 18233.02 |
| Tre | Tur | Tre - O G | 15558.29 | 18233.02 |
| Tre | Tur | Tre - O G | 16895.65 | 18233.02 |
| Tre | Tran | Tre - O G | 18233.02 | 18233.02 |
| Filter on Combo and Mod | ||||
| Type | Mod | Combo | Value | Max Value |
| Tre | Com | Tre - O G | 12681.37 | 14220.92 |
| Tre | Com | Tre - O G | 14220.92 | 14220.92 |
5 Replies
- v-henryk-mstfCommunity Support
Hi tnarenderr ,
Try formula like below:
M_ = CALCULATE ( MAX ( 'Table'[Value] ), ALL ( 'Table' ), 'Table'[Combo] = SELECTEDVALUE ( 'Table'[Combo] ) )M2 = VAR sel_mod = SELECTEDVALUE ( 'Table'[Mod] ) VAR sel_combo = SELECTEDVALUE ( 'Table'[Combo] ) RETURN CALCULATE ( MAX ( 'Table'[Value] ), ALL ( 'Table' ), 'Table'[Mod] = sel_mod && 'Table'[Combo] = sel_combo )If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - tnarenderrFrequent Visitor
Hi Henry,
Instead of two measures, can we have one measure only. As two measures wont help my requirment.
Regards,
Narender.
- v-henryk-mstfCommunity Support
Hi tnarenderr ,
Try below:
slicer1 = CROSSJOIN(row("slicer","tyep"),VALUES('Table'[Combo])) slicer2 = CROSSJOIN(row("slicer","type"),VALUES('Table'[Mod])) result = CALCULATE ( MAX ( 'Table'[Value] ), ALL ( 'Table'[Value] ), ALLSELECTED ( 'Table'[Combo], 'Table'[Mod] ) )Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- tnarenderrFrequent Visitor
Hi Henry,
it is not giving expected results. thanks for your efforts.
- v-henryk-mstfCommunity Support
Hi tnarenderr ,
Can you point out exactly what the problem is and give me an idea of what you have tried to do so that I can make further changes?
Looking forward to your reply.
Best Regards,
Henry