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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi PBI Gurus
I have a scenrio where the date is in date range on Sliders and the table have a data with fields having another date.
The date slicer has date field name <System_Date> while the visual have date filed name <Updated_Date>
Now If I Select <System_Date> range from date slicer say 01-Jun-2024 to 30-Jun-2024 it should show below data
No Of Days shold be calculated based upon the End Date select in date slicer - the Updated_Date in table visual.
Appreciate your help here
Solved! Go to Solution.
If you want the slicer to also filter the table then you will need to make a relationship between the date table and the fact table.
Proud to be a Super User! | |
A measure like the following will work when the table date is not related to the date from the date table.
Measure =
var _maxDate =
MAXX(dateTable, dateTable[Date])
var _diff =
DATEDIFF(SELECTEDVALUE('Table'[DateFromTable]), _maxDate, DAY)
RETURN
_diff
Proud to be a Super User! | |
This is just calculating No Of Days but it should also filter the table below , so If I select end date as 30-Jun-2024 the date slider is having properties as before so it shoudl show all data before 30-jun-2024
Thanks it worked as expected
If you want the slicer to also filter the table then you will need to make a relationship between the date table and the fact table.
Proud to be a Super User! | |
User | Count |
---|---|
98 | |
76 | |
74 | |
50 | |
27 |