Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I have created the following DAX measure that calculates SPLY for a specific value and that works just fine.
My question now is, if it is possible to write a DAX measure that can be used as a date-filter for a visual?
So basically the above code, without the calculate part.
Or do I somehow have to build this within my date table?
Thx in advance for your help! 😊
Hi @cn4422, create a calculated column, if you encounter any issues, let me know.
IsSPLY =
VAR dateRange = DATESBETWEEN('Datum'[Date], MIN('Datum'[Date]), MAX('Datum'[Date]))
VAR dateRangeSPLY = SAMEPERIODLASTYEAR(dateRange)
RETURN
IF(
'Datum'[Date] IN dateRangeSPLY,
1,
0
)
Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Supplier!
Hi,
thx for your reply!
I've created a column:
and implemented it as a Filter for a visual (diagram), but the date doesn't change for the visual.
Do I have to set the format for the created column to "date"?
Or adjust something else?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |