Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 , Thanks for updating. Good that it is solved. Kudos to you.
@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) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
97 | |
80 | |
67 | |
63 |
User | Count |
---|---|
147 | |
110 | |
108 | |
85 | |
64 |