The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?