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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I'm trying to create an index column, where when the data is grouped by week, and the pickup date is in ascending order, the index reads 1, 2, 3, 4, etc. and that starts back over at 1 for the next week.
How would I go about doing that?
@hnblann This solves everything except how to resolve ties between duplicate dates. PBIX is attached below signature.
Column =
VAR __Date = [Date]
VAR __Week = [Week]
VAR __WeekTable = FILTER(ALL('Table2'),[Week] = __Week)
VAR __TextTable = CONCATENATEX(__WeekTable,[Date] * 1.,"|",[Date])
VAR __Table =
ADDCOLUMNS(
GENERATESERIES(1,COUNTROWS(__WeekTable),1),
"__Date", PATHITEM(__TextTable,[Value])
)
RETURN
MAXX(FILTER(__Table, [__Date] = (__Date * 1.) & ""),[Value])
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!