Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 43 | |
| 41 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 121 | |
| 96 | |
| 65 | |
| 46 |