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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
So I am noy yet very strong in aggregating data, my Dax is slowly getting better, but I am a bit stuck.
I have this table:
id | date | activity | activity_count |
308 | 1-Jun-22 | a | 312 |
308 | 1-Jun-22 | c | 39 |
308 | 1-Jun-22 | b | 80 |
308 | 2-Jun-22 | c | 251 |
308 | 2-Jun-22 | b | 222 |
308 | 3-Jun-22 | a | 50 |
308 | 3-Jun-22 | c | 223 |
308 | 3-Jun-22 | b | 171 |
308 | 4-Jun-22 | b | 302 |
308 | 4-Jun-22 | c | 106 |
308 | 4-Jun-22 | a | 23 |
I would like to create a measure or seperate table / aggregation:
308 is the id (one of many ids), and per day a number is recorded for 3 activities. I would like to get a similar table or measure that sums of the 3 activities (a, b and c) per day, per id. Example: so for day / date 1-Jun-22 the sum is 312+39+80 = 431 ...... and then repeated per day all the way through.
Cheers,
Carsten
Solved! Go to Solution.
Thanks a lot for the reply / solution. In the end I have created an aggregated table, as I was requested to do more data quality measures. Sorry for the late reply. Cheers, Carsten
Thanks a lot for the reply / solution. In the end I have created an aggregated table, as I was requested to do more data quality measures. Sorry for the late reply. Cheers, Carsten
@Anonymous , I think simple Measure sum should do
Sum(Table[activity_count])
or in case you need to ignore row context
calculate(Sum(Table[activity_count]) , filter( alllselected(Table), Table[id] = max(Table[ID]) && Table[date] = max(Table[date]) ))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
9 | |
9 | |
8 |