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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Can you help me how to translate below underlined statement in DAX:
Is before today and is after September 30, 2024
I know this can be done in filters but I wanted to avoid manual date set up everytime I will refresh the reports. Thank you so much in advance!
Solved! Go to Solution.
Hi @JB17
You can do this easily with a small DAX formula instead of setting manual filters every time.
Could you please try below Steps:
FilteredDate =
VAR _today = TODAY()
VAR _cutoff = DATE(2024, 9, 30)
RETURN
IF(
'Date'[Date] < _today &&
'Date'[Date] > _cutoff,
1
)
Hi @JB17
FilteredDate =
VAR _today = TODAY()
VAR _cutoff = DATE(2024, 9, 30)
RETURN
IF ( 'Date'[Date] < _today && 'Date'[Date] > _cutoff, 1, 0 )
You can learn more here:
TODAY function (DAX): https://learn.microsoft.com/en-us/dax/today-function-dax
DATE function (DAX): https://learn.microsoft.com/en-us/dax/date-function-dax
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rufyda Rahma | Microsoft MIE
https : https://www.linkedin.com/in/rufyda-abdelhadirahma/
Blog : https://medium.com/@rufydarahma
'Table'[Date] < TODAY() && 'Table'[Date] > DATE(2024, 9, 30)
If this answer helped, please click Kudos or mark as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande
Hi @JB17,
Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @Kedar_Pande, @Rufyda, @rohit1991, for those inputs on this thread. I reproduced the scenario, and it worked on my end. I used it as sample data and successfully implemented it.
outcome:
I am also including .pbix file for your better understanding, please have a look into it.
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
Hi @JB17,
Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @Kedar_Pande, @Rufyda, @rohit1991, for those inputs on this thread. I reproduced the scenario, and it worked on my end. I used it as sample data and successfully implemented it.
outcome:
I am also including .pbix file for your better understanding, please have a look into it.
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
Hi @JB17,
Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.
Thank you.
Hi @JB17,
Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.
Thank you.
'Table'[Date] < TODAY() && 'Table'[Date] > DATE(2024, 9, 30)
If this answer helped, please click Kudos or mark as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande
Hi @JB17
FilteredDate =
VAR _today = TODAY()
VAR _cutoff = DATE(2024, 9, 30)
RETURN
IF ( 'Date'[Date] < _today && 'Date'[Date] > _cutoff, 1, 0 )
You can learn more here:
TODAY function (DAX): https://learn.microsoft.com/en-us/dax/today-function-dax
DATE function (DAX): https://learn.microsoft.com/en-us/dax/date-function-dax
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rufyda Rahma | Microsoft MIE
https : https://www.linkedin.com/in/rufyda-abdelhadirahma/
Blog : https://medium.com/@rufydarahma
Hi @JB17
You can do this easily with a small DAX formula instead of setting manual filters every time.
Could you please try below Steps:
FilteredDate =
VAR _today = TODAY()
VAR _cutoff = DATE(2024, 9, 30)
RETURN
IF(
'Date'[Date] < _today &&
'Date'[Date] > _cutoff,
1
)
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |