Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello Smart Friends. I need help. I have spent much time over the last few weeks trying to solve.
Situation.
I have a table of data that includes a row of data for every time a story is updated. I am extracting a list of stories filtered to a given date. So, my intent is to exclude from the page any updates past this date.
What I need is a list Filtered fist by Sprint # then by date where the System ID is unique and showing the latest record constrained by the date filter.
System_Id | System_Title | Sprint | IterationName | System_RevisedDate |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 5:44 |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 5:46 |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 5:46 |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 6:25 |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 7:32 |
89042 | Title for story 1 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/26/2020 5:35 |
91986 | Title for story 2 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/25/2020 13:29 |
91986 | Title for story 2 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/26/2020 7:43 |
92890 | Title for story 3 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 10:59 |
92890 | Title for story 3 Revision 1 | Sprint 31 | Sprint 31 Monkey Fist | 6/26/2020 7:51 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/11/2020 9:20 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/11/2020 10:26 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/16/2020 10:39 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/16/2020 10:43 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 8:52 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 9:25 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 10:58 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 10:59 |
92890 | Title for story 3 Revision 2 | Sprint 31 | Sprint 31 Monkey Fist | 6/24/2020 10:59 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 11:35 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 14:56 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 20:29 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/25/2020 8:13 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/25/2020 11:30 |
93066 | Title for story 4 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/26/2020 17:20 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 11:34 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 20:33 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 21:11 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 21:14 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/24/2020 21:14 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/25/2020 7:29 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/25/2020 11:41 |
93067 | Title for story 5 Revision 1 | Sprint 31 | Sprint 31 Vader's Taters | 6/26/2020 17:20 |
Hi, @Thumper369
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Test(a calculated table):
Test = DISTINCT('Table'[System_RevisedDate])
You may create a measure as below.
Visual Control =
var _date =
CALCULATE(
MAX('Table'[System_RevisedDate]),
FILTER(
ALLSELECTED('Table'),
'Table'[System_Id] = SELECTEDVALUE('Table'[System_Id])&&
'Table'[System_RevisedDate]<=SELECTEDVALUE('Test'[System_RevisedDate])
)
)
return
IF(
SELECTEDVALUE('Table'[System_RevisedDate])=_date,
1,0
)
Finally you may put the measure in the visual level filter and use the date column from 'Test' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-alq-msft it looks like in your example shot it shows story 3 twice revision 2 and 3. That is part of the problem I am having. I want to only see each instacne of ID once. so in your example I would only want revision 3
Restating the desired result
End result should be a list of uniquie System_Id (utilizing most recent as defined by System refined date) where filtered by sprint number and <= filtered system date (as to exclude later updates).
Ok, I could still use a solution to this as I will have other things I need that are similar.
But for me all I needed was setting the change date column to latest and getting rid of the sprint column as power BI was seeing them as two entries that needed to be displayed as one record had one value in it and another had a diferent teams value.
so it was showing me both records but I did not need that. I only neede the latest one.
@Thumper369 , Not all requirements are clear to me.
Refer if this can help in getting the last record
LASTNONBLANKVALUE(Table[System_RevisedDate], Count(Table[System_Id]))
or
Sumx(summarize(Table,Table[Sprint],Table[System_Id],"_1",LASTNONBLANKVALUE(Table[System_RevisedDate], Count(Table[System_Id]))),[_1])
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
132 | |
110 | |
66 | |
55 |