Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello @all,
could anyone help me out with the DAX formula on this:
I'm looking for the start and end date of each task in historic data.
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous
Try this, where Table1 is the table you show:
1. In the query editor, replace "open" for null in TaskEndDate and then convert TaskStartDate and TaskEndDate to type Date
2. Place Table1[Task] in the rows of a matrix visual
3. Create this two measures and place them in values of the matrix
MeasStartDate = MIN(Table1[TaskStartDate])
MeasEndDate = VAR _Res = MAX ( Table1[TaskEndDate] ) RETURN IF ( NOT ISBLANK ( _Res ), _Res, "open" )
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. That allows people trying to help to readily copy the data and run a quick test, plus it increases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
Hi @Anonymous
Try this, where Table1 is the table you show:
1. In the query editor, replace "open" for null in TaskEndDate and then convert TaskStartDate and TaskEndDate to type Date
2. Place Table1[Task] in the rows of a matrix visual
3. Create this two measures and place them in values of the matrix
MeasStartDate = MIN(Table1[TaskStartDate])
MeasEndDate = VAR _Res = MAX ( Table1[TaskEndDate] ) RETURN IF ( NOT ISBLANK ( _Res ), _Res, "open" )
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. That allows people trying to help to readily copy the data and run a quick test, plus it increases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |