Forum Discussion
Greg888
4 years agoHelper I
Getting a max step from a group
Hi All I have what I think could be a fairly simply problem to solve but I have been going around and around in circles to try to get the answer and now I'm just stuck or not understanding why th...
- 4 years ago
MaxStepNo = MAXX( FILTER( 'Document Steps', 'Document Steps'[DocNumber] = EARLIER( 'Document Steps'[DocNumber] ) ), 'Document Steps'[StepNo] )
SpartaBI
4 years agoCommunity Champion
MaxStepNo =
VAR _current_doc = 'Document Steps'[DocNumber]
RETURN
CALCULATE(
MAX('Document Steps'[StepNo]),
REMOVEFILTERS('Document Steps'),
'Document Steps'[DocNumber] = _current_doc
)
| In case it answered your question, please accept it as a solution to help the other members find it more quickly. Appreciate Your Kudos 💪 Showcase Report – Contoso By SpartaBI Website Linkedin Facebook This is SpartaBI! |
Greg888
4 years agoHelper I
Sadly gives me the exact same result of my original query