The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
I have made a seperate date table using the CALANDER() function, that isn't related to the rest of my dataset. I then have the slicer select dates from that independent date table, to filter the visual. The measure in the visual retrieves the selected date, and then uses it to filter the actual dates that are in the dataset - which themselves are not filtered by the slicer.
However, this filter doesn't seem to be behaving correctly.
The filter argument in:
I have made a seperate date table using the CALANDER() function, that isn't related to the rest of my dataset. I then have the slicer select dates from that independent date table, to filter the visual. The measure in the visual retrieves the selected date, and then uses it to filter the actual dates that are in the dataset - which themselves are not filtered by the slicer.
However, this filter doesn't seem to be behaving correctly.
The filter argument in:
I've realised that the reason it can't do the date comparison is because the tables are not related. This is such a catch-22.
There's the possibility of creating an inactive relationship, and then using the following code to activate it:
USERELATIONSHIP(Sheet1[Period - month], 'Independent Date Table'[Date])
However I can't seem to shuffle the code around in just the right way to make it work.
Anyway, since, in a way, I've solved the first part, I'll change the title of the post and mark this as solved and make a seperate post about the second part.