Forum Discussion
Anonymous
8 years agoNot applicable
DAX Max value from another column based on row value
I'm trying to write a DAX function to find the maximum value in one column based on a condition in another, but have this condition change dynamically based on the row value. With this code...
- 8 years ago
HI Anonymous
Try this
= CALCULATE ( MAX ( RankOfArea[count] ), ALLEXCEPT ( Rankofarea, Rankofarea[Line] ) )
Zubair_Muhammad
8 years agoCommunity Champion
HI Anonymous
Try this
=
CALCULATE (
MAX ( RankOfArea[count] ),
ALLEXCEPT ( Rankofarea, Rankofarea[Line] )
)Anonymous
8 years agoNot applicable
Hi Zubair_Muhammad ,
Thanks for your reply.
Why did you change the post title please? I don't want to return a running total, rather the maximum value.
Edit - sorry that worked, my typing. No idea why. Thanks.
- Zubair_Muhammad8 years agoCommunity Champion
Hi Anonymous
:smileysurprised:I didn't change the post title:smileysurprised::smileysurprised:
- Anonymous8 years agoNot applicable
Hi Zubair,
Oh sorry, that was me assuming - I saw you were a power user !
Must've been admin. Anyway cheers again for your response - didn't understand it but it worked :)
- Zubair_Muhammad8 years agoCommunity Champion
HI Anonymous
Here is a wonderful article on ALL functions.