Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi guys,
I have a table below:
I need to build a an adicitonal column when shows 1 if the first date and 0 outherwise like this:
Thanks
Solved! Go to Solution.
@Anonymous , Create a new column like
new column =
if([Date] = minx(filter(Table, [Id] = earlier([ID])),[Date]),1,0)
Hi, @Anonymous
Please try the below for creating a new column.
is first =
VAR currentdate = 'Table'[Date]
VAR currentid = 'Table'[id]
VAR previousdateidcolum =
SUMMARIZE (
CALCULATETABLE ( 'Table', FILTER ( 'Table', 'Table'[Date] < currentdate ) ),
'Table'[id]
)
RETURN
IF ( currentid IN previousdateidcolum, 0, 1 )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Anonymous
Please try the below for creating a new column.
is first =
VAR currentdate = 'Table'[Date]
VAR currentid = 'Table'[id]
VAR previousdateidcolum =
SUMMARIZE (
CALCULATETABLE ( 'Table', FILTER ( 'Table', 'Table'[Date] < currentdate ) ),
'Table'[id]
)
RETURN
IF ( currentid IN previousdateidcolum, 0, 1 )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Anonymous , Create a new column like
new column =
if([Date] = minx(filter(Table, [Id] = earlier([ID])),[Date]),1,0)
User | Count |
---|---|
85 | |
75 | |
71 | |
69 | |
55 |
User | Count |
---|---|
98 | |
97 | |
92 | |
78 | |
70 |