Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Set customer registration date

Hello

I have the following table (this is just an excerpt):

data_operador1_0-1641223363173.png

The "DateLastActivity" date shows when the client record was modified and may be duplicated multiple times (as seen).

I would like to create the "Customer Registration Date" column of a customer with an ID that was equal to the first date on which that customer ID appears and is applied to all rows of that customer. how could I do it?

Thank you very much and greetings

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

I did not see the "# Trello Card" as well.😂 Maybe you mean the second column...

 

Please simplty use:

Column = CALCULATE(MIN('Table'[DateLastActivity]),ALLEXCEPT('Table','Table'[Trello Card]))

Eyelyn9_0-1641448792970.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Any updates?

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

I did not see the "# Trello Card" as well.😂 Maybe you mean the second column...

 

Please simplty use:

Column = CALCULATE(MIN('Table'[DateLastActivity]),ALLEXCEPT('Table','Table'[Trello Card]))

Eyelyn9_0-1641448792970.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Syndicate_Admin , Not able to see ID column in sample data

 

You can create a new column like for Min date

minx(filter(Table, [ID] =earlier([ID]) ) , [DateLastActivity])

Sorry, I haven't explained myself well. The customer ID is "# Trello Card". The table is of modifications to the customer's records and the first recorded activity is when the customer was registered.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.