Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 2 columns that includes 2 different dates.
What i'm trying to do is to create a calculated column that determines whether column "governance" is <= TODAY and the "contract issue" column is <= the end of the next month (i.e. March). with either "yes" or "no" in the if statement.
Sample table below
14/01/2022 | 04/03/2022 |
04/02/2022 | 11/03/2022 |
Much thanks in advance
Solved! Go to Solution.
Hi @Anonymous ,
You can create a calculated column as below to get it:
Flag =
VAR _today =
DATE ( 2022, 2, 25 )
RETURN
IF (
'Table'[Governance] <= _today
&& 'Table'[Contract Issue]
>= EOMONTH ( _today, 0 ) + 1
&& 'Table'[Contract Issue] <= EOMONTH ( _today, 1 ),
"yes",
"no"
)
Best Regards
Hi @Anonymous ,
How about this:
IF ( 'Table2'[Govnernance] <= TODAY() && 'Table2'[Contract Issue] <= EOMONTH ( Today(), 1 ) && 'Table2'[Contract Issue] > EOMONTH ( Today(), 0 ), "yes", "No" )
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Hi @Anonymous ,
How about this:
IF ( 'Table'[Governance] <= TODAY() && 'Table'[Contract Issue] <= EOMONTH ( Today(), 1 ), "yes", "No" )
Does this solve your issue? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
thank you for the quick response. i've tried it but it returns me all "contract issue" that's happened before the end of the next month (even in the past) what i was looking for was the contract issue dates between the start of next month and the end of next month (i.e. only all march dates only)
Hi @Anonymous ,
You can create a calculated column as below to get it:
Flag =
VAR _today =
DATE ( 2022, 2, 25 )
RETURN
IF (
'Table'[Governance] <= _today
&& 'Table'[Contract Issue]
>= EOMONTH ( _today, 0 ) + 1
&& 'Table'[Contract Issue] <= EOMONTH ( _today, 1 ),
"yes",
"no"
)
Best Regards
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |