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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have been tasked by my management team to replicate reports they are currently using in Motivity. I cannot figure out how to create the following buckets.
Today
This week to date
Last Week to date
Last week total
This month to date
Last month to date
Last month Total
Im still trying to figure out Power BI and not sure how to either write these columns or if i need a seperate table etc.
Solved! Go to Solution.
hello @Anonymous,
Possibly this could be your solution:
Sales Today = CALCULATE([Sales ($)],TableName[Date]=TODAY())
This Week to Date =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR thisWeekToDate =CALCULATE([Sales ($)],TableName[Week of Year] = curWeek)
RETURN thisWeekToDateLast Week Total =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR lastWeek = CALCULATE([Sales ($)],TableName[Week of Year] = curWeek -1)
RETURN lastWeek
Last Week to Date =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR lastWeek = curWeek - 1
VAR lastWeekToDate =CALCULATE([Sales ($)],TableName[Week of Year] = lastWeek)
RETURN lastWeekToDate + [This Week to Date]
This Month to Date = TOTALMTD([Sales ($)],TableName[Date],MONTH(TableName[Date]) = MONTH(TODAY()))
Last Month to Date = [This Month to Date]+[Last Month Total]
Last Month Total = CALCULATE([Sales ($)],TableName[Month] = MONTH(TODAY())-1)
Proud to be a Super User!
hello @Anonymous,
Possibly this could be your solution:
Sales Today = CALCULATE([Sales ($)],TableName[Date]=TODAY())
This Week to Date =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR thisWeekToDate =CALCULATE([Sales ($)],TableName[Week of Year] = curWeek)
RETURN thisWeekToDateLast Week Total =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR lastWeek = CALCULATE([Sales ($)],TableName[Week of Year] = curWeek -1)
RETURN lastWeek
Last Week to Date =
VAR curWeek = LOOKUPVALUE(
TableName[Week of Year],
TableName[Date],TODAY()
)
VAR lastWeek = curWeek - 1
VAR lastWeekToDate =CALCULATE([Sales ($)],TableName[Week of Year] = lastWeek)
RETURN lastWeekToDate + [This Week to Date]
This Month to Date = TOTALMTD([Sales ($)],TableName[Date],MONTH(TableName[Date]) = MONTH(TODAY()))
Last Month to Date = [This Month to Date]+[Last Month Total]
Last Month Total = CALCULATE([Sales ($)],TableName[Month] = MONTH(TODAY())-1)
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 52 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 103 | |
| 40 | |
| 33 | |
| 25 |