Forum Discussion
dkernen
Resolver II
5 years agoMAX Value within Group - DAX
Hello. I need some assistance. I need to find the max registrants per county per year. CountyState Population18+ Registrants RptQtr Annual Max Registrants Adair, MO 20,809 13,267 2...
- 5 years ago
I found the answer on a SQLBI video which does not require the calculated column. Yea!
Top State Rate =CALCULATE(MAXX(factRegistry,DIVIDE(factRegistry[Registrants],factRegistry[Population18+])),VALUES(Counties[StateName]),ALL(Counties)) - 5 years ago
Hi everyone. This is the solution that did the trick. I appreciate the help along the way!
State Rate Max =CALCULATE(MAXX(factRegistry,DIVIDE(factRegistry[Registrants],factRegistry[Population18+])),VALUES(Counties[StateName]),ALL(Counties))
dkernen
Resolver II
5 years agoI found the answer on a SQLBI video which does not require the calculated column. Yea!
Top State Rate =
CALCULATE(
MAXX(
factRegistry,
DIVIDE(
factRegistry[Registrants],
factRegistry[Population18+]
)
),
VALUES(Counties[StateName]),
ALL(Counties)
)