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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Communtiy
I have the below dataset (The first 3 variables). I need to sum the Value by Measure and by Date every three months starting on September 2020. Any ideas in how I could do that? For example here it is what I need to get
Many thanks for your help! 🙂
Hi
let
Source = YourSource,
Index = Table.AddIndexColumn(YourSource, "Index", 0, 1, Int64.Type),
Groupe = Table.Combine(
Table.Group(
Index,
{"Date"},
{{"Data", each Table.Group(
_,
{"Measure"},
{{"Max_Month",each List.Max([Date])},
{"Sum",each List.Sum([Value])}})}},
GroupKind.Local,
(x,y) => if y[Date]<Date.AddMonths(x[Date],3) then 0 else 1)
[Data]),
Join = Table.NestedJoin(Index, {"Date", "Measure"}, Groupe, {"Max_Month", "Measure"}, "Group", JoinKind.LeftOuter),
Expand = Table.ExpandTableColumn(Join, "Group", {"Sum"}, {"Sum"}),
Sort = Table.Sort(Expand,{{"Index", Order.Ascending}})
in
Sort
Stéphane
In Power Query (Transform option from BI), you can
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 20 | |
| 14 | |
| 11 | |
| 8 | |
| 8 |