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.
Hi Community,
I have a problem.
I have a number of measures that I need to build via a method of using a date slicer to sum the value between two dates.
(See Screenshot below).
I need Dax to push the Min Slicer Value (Date Table) and Max Slicer Value (Date Table) into measures in the Timecard Table.
The timecard table works on the premise of two date fields. Start Date and End Date.
I need to create a measure that sums the values in the Total hours columns, where the Start Date >= Min Date on the Slicer & the End Date <= Max Date on the Slicer.
I need to build many measure via a similar method.
I am hoping to avoid the relationship method and userrelationship method if possible.
Any help would be appreciated.
Solved! Go to Solution.
You may refer to the DAX below.
Measure = SUMX ( FILTER ( Timecard, Timecard[Start Date] >= MIN ( 'Date'[Date] ) && Timecard[End Date] <= MAX ( 'Date'[Date] ) ), Timecard[Total Hours] )
You may refer to the DAX below.
Measure = SUMX ( FILTER ( Timecard, Timecard[Start Date] >= MIN ( 'Date'[Date] ) && Timecard[End Date] <= MAX ( 'Date'[Date] ) ), Timecard[Total Hours] )