Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear,
I have an issue regarding a conditional column in the calendar. In fact, I would like to show the 'Calendar'[Date]>TODAY() BUT including the full current month.
When I do the previous formula, it did not include the month of November.
Do you have a Formula to show the 'Calendar'[Date]>TODAY() including the full current month (even if we are the 25/11) ?
Thanks you.
Solved! Go to Solution.
HI @Anonymous ,
You can use YEAR, MONTH function to extract 'year', 'month' from TODAY function, then you can use DATE function combine them and get the last day of the previous month and compare with your column date values.
formula =
IF (
'Calendar'[Date]
> DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ) - 1,
1
)
Regards,
Xiaoxin Sheng
HI @Anonymous ,
You can use YEAR, MONTH function to extract 'year', 'month' from TODAY function, then you can use DATE function combine them and get the last day of the previous month and compare with your column date values.
formula =
IF (
'Calendar'[Date]
> DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ) - 1,
1
)
Regards,
Xiaoxin Sheng
Hi,
if I had to my Dim_Date table a new column = IF(Dim_Date[Date]>TODAY(),1,0) the formula works fine and Tomorrow has 1.
How do you build your Calendar Table?
Regards
Lorenzo
Lorenzo,
I use the Calendar table from this link https://www.youtube.com/watch?v=zXZAZrUwUe8
Help when you know. Ask when you don't!
You should be able to use this DAX function :
Returns the first date of the month in the current context for the specified column of dates.
STARTOFMONTH(<dates>)
so your formula would become
'Calendar'[Date]>STARTOFMONTH(TODAY() )
I'm a personal Power BI Trainer
Help when you know. Ask when you don't!
Try Datesmtd
This Month = CALCULATE(sum(Sales[Sales Amount]),DATESMTD('Date'[date]))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |