Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am trying to get a slicer based on time periods. I know this works, but I really want "Overall" to be period between Min Start Date from a Project Table's Start Date and the Max End Date from the Project Tables End Date. How do I fit that into this type of table:
I need min and max because I am doing the report based on a Release that has multiple projects.
Solved! Go to Solution.
There are a few ways to attack this, but the easiest and most straightforward is to:
You can see this concept explained in depth here, but can easily be applied to your situation.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHere is your measure that is a bit easier to read:
Date Period =
UNION (
ADDCOLUMNS (
SUMMARIZE (
CALCULATETABLE (
'Project Date Range',
DATESBETWEEN ( 'Project Date Range'[Date], TODAY () - 90 + 1, TODAY () )
),
'Project Date Range'[Date]
),
"Period", "Last 90 Days"
),
ADDCOLUMNS (
SUMMARIZE (
CALCULATETABLE (
'Project Date Range',
DATESBETWEEN ( 'Project Date Range'[Date], TODAY () - 30 + 1, TODAY () )
),
'Project Date Range'[Date]
),
"Period", "Last 30 Days"
),
ADDCOLUMNS (
SUMMARIZE (
CALCULATETABLE ( 'Project Date Range' ),
'Project Date Range'[Date]
),
"Period", "Overall"
)
)
Where exactly are you wanting to add MIN/MAX? You can use MIN/MAX on date columns, but you cannot use measures for slicers, so you will not be able to use this for a slicer.
If you have a slicer with dates and you want the range of dates, use FIRSTDATE(ALLSELECTED(Date[Date])) and LASTDATE(ALLSELECTED(Date[Date])) to get the first/last date in the date range of the slicer.
If that isn't what you want, can you be more specific?
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingI have attached a picture. I have a Projects table with Start Date and End Date. I want my DatePeriod Slicer Overall Category be the min and max of those dates in the bottom right section so that when I select Overall above - it will adjust the Release Burn Up chart.
There are a few ways to attack this, but the easiest and most straightforward is to:
You can see this concept explained in depth here, but can easily be applied to your situation.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
119 | |
78 | |
59 | |
52 | |
48 |
User | Count |
---|---|
171 | |
117 | |
61 | |
59 | |
53 |