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! Get ahead of the game and start preparing now! Learn more
I have a date field in my table i want to write a power query for new column to find date between two dates. if present it returns true else false
Solved! Go to Solution.
Hi @Ramakrishna7032 ,
Add a custom column and see if it works.
if [DateKey]> Date.FromText("01/01/2022") and [DateKey]< Date.FromText("31/01/2022") then 1 else 0
Hope this helps.
Did I help you today? Please accept my solution and hit the Kudos button.
Hi @Ramakrishna7032 ,
Add a custom column and see if it works.
if [DateKey]> Date.FromText("01/01/2022") and [DateKey]< Date.FromText("31/01/2022") then 1 else 0
Hope this helps.
Did I help you today? Please accept my solution and hit the Kudos button.
Hi @davehus,
Appreciated your solution. I had one more question like can we write a power query to know the term is updated in last 24 hours??
thanks in advance
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 3 |