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! It's time to submit your entry. Live now!
I am using the formula below to pull the MTD value from the previous day. I'd like to make the value of the first day of each month blank - so it doesnt pull from the last day of the previous month. I setup a calendar table and tried a couple of filters but none works. Will appreciate some help.
Previous Day MTDCalc =
TOTALMTD (
CALCULATE (
CALCULATE (
SUM(FactTable[Value]),
FILTER (
FactTable,
FactTable[Channel]= "MyChannel"
)
)
),
PreviousDay (FactTable[Date])
)
Solved! Go to Solution.
All set. Managed to get it working with this :
Previous Day MTDcALC =
IF ( FactTable[Date] = STARTOFMONTH(FactTable[Date]), BLANK(),
TOTALMTD (
CALCULATE (
CALCULATE (
SUM(FactTable[Value]),
FILTER (
FactTable,
FactTable[Channel]= "MyChannel"
)
)
),
PreviousDay (FactTable[Date])
)
)
Thxxxx
I am looking to pull the value of the previous days MTD calculation. But the code I posted pulls the value of the last day of the previous month for the first day of the month .
I tried the flag you suggested using a DAY (DateDim[Date]) . The if statement didn't work when I set it to check for value = 1 . Field just came up blank.
All set. Managed to get it working with this :
Previous Day MTDcALC =
IF ( FactTable[Date] = STARTOFMONTH(FactTable[Date]), BLANK(),
TOTALMTD (
CALCULATE (
CALCULATE (
SUM(FactTable[Value]),
FILTER (
FactTable,
FactTable[Channel]= "MyChannel"
)
)
),
PreviousDay (FactTable[Date])
)
)
Thxxxx
Hi @juju,
I am very glad to hear you have resolved your problem. Please mark the corresponding replay as answer, which will help other people find solution easily and clearly.
Best Regards,
Angelia
Yes - I am trying to calculate it - without using the slicer. But I guess it's th same calculation if I added a day slicer to the report.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 45 | |
| 38 | |
| 26 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 119 | |
| 58 | |
| 37 | |
| 30 |