Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Good day
I have dataset with Group Nos, some have multiple meeting dates and some don't have, see example below. The groups all belong to one Centre. From the dates I needed to extract for each Group, a maximum date then use that in a measure to get a sum for a Centre. My desired answer is R8 460, which is all the highlighted groups in Red.
To achieve this, I first created a column using DAX below to get the maximum dates for each group, which returns corrects results:
Solved! Go to Solution.
@amitchandak Thank you for the quick response. The measures are still not working.
So I found a solution. I added a Flag column on the dataset:
Then used this on the measure. It's working perfectly:
@amitchandak Thank you for the quick response. The measures are still not working.
So I found a solution. I added a Flag column on the dataset:
Then used this on the measure. It's working perfectly:
@Tlotly , try like
New meausre =
var _max = maxx(filter(allselected(CentreRepayments), CentreRepayments[centre code] = max(CentreRepayments[centre code])
&& CentreRepayments[group no] = max(CentreRepayments[group no]) ), CentreRepayments[Meeting_progress Date])
return
calculate(sum(CentreRepayments[Group Saving Balance]), filter(allselected(CentreRepayments), CentreRepayments[centre code] = max(CentreRepayments[centre code])
&& CentreRepayments[group no] = max(CentreRepayments[group no]) && CentreRepayments[Meeting_progress Date] = _max) )
or
New meausre =
var _max = maxx(filter(allselected(CentreRepayments), CentreRepayments[centre code] = max(CentreRepayments[centre code])
&& CentreRepayments[group no] = max(CentreRepayments[group no]) ), CentreRepayments[Meeting_progress Date])
return
calculate(sum(CentreRepayments[Group Saving Balance]), filter(CentreRepayments,CentreRepayments[Meeting_progress Date] = _max) )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.