March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have an operations dashboard that displays data for the current month and year-to-date (YTD). On the current month side, all my visuals use a relative date filter to show items from "this month."
The data is updated daily, with the SQL build providing data up to the previous day (today -1).
The issue arises at the start of a new month—on the 1st, the reports appear blank because the filter is trying to include today's data, which isn't yet available.
How can I ensure that my "current month" visuals continue to display the full month's data without going blank on the first day?
Solved! Go to Solution.
Hi @simonandtony ,
Maybe you can try formula like below:
CurrentMonthData =
VAR TodayDate =
TODAY ()
VAR StartOfMonth_ =
DATE ( YEAR ( TodayDate ), MONTH ( TodayDate ), 1 )
VAR EndOfMonth_ =
EOMONTH ( TodayDate, 0 )
RETURN
CALCULATE (
SUM ( 'Table'[Amount] ),
'Table'[OrderDate] >= StartOfMonth_
&& 'Table'[OrderDate] <= EndOfMonth_ - 1
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @simonandtony ,
Maybe you can try formula like below:
CurrentMonthData =
VAR TodayDate =
TODAY ()
VAR StartOfMonth_ =
DATE ( YEAR ( TodayDate ), MONTH ( TodayDate ), 1 )
VAR EndOfMonth_ =
EOMONTH ( TodayDate, 0 )
RETURN
CALCULATE (
SUM ( 'Table'[Amount] ),
'Table'[OrderDate] >= StartOfMonth_
&& 'Table'[OrderDate] <= EndOfMonth_ - 1
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @simonandtony ,
Try the below measure y replacing your measures which you have created..
CurrentMonthData =
IF(
DAY(TODAY()) = 1,
CALCULATE([YourMeasure], DATESINPERIOD('Date'[Date], TODAY(), -1, MONTH)),[YourMeasure])
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!
Thank You
Dharmendar S
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |