cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Flag to identify new user in a dataset

Hi All,

 

I have a dataset with user information date wise. I need to add a custom column flagging the new users based on the date. In the below dataset on 6/2/2020, have 2 new users(X, Y) when compared with previous records .Could you please help me achieve this. 

 

Flag.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Yes, @amitchandak 's answer is right. you should do like this.

Column = 
var new = 
RANKX(
    FILTER(
        'Sheet2',
        Sheet2[User] = EARLIER(Sheet2[User])
    ),
    Sheet2[Name].[Date],
    ,ASC,Dense
)
return 
IF(
    new=1,
    "N",
    BLANK()
)

qq7.PNG

 

Best regards,
Lionel Chen

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

3 REPLIES 3
Anonymous
Not applicable

Hi @amitchandak ,

 

Actually I don't want to rank the data but need to add a flag. Could you please use the same dataset and share the calculation?

 

Thanks

Hi @Anonymous ,

 

Yes, @amitchandak 's answer is right. you should do like this.

Column = 
var new = 
RANKX(
    FILTER(
        'Sheet2',
        Sheet2[User] = EARLIER(Sheet2[User])
    ),
    Sheet2[Name].[Date],
    ,ASC,Dense
)
return 
IF(
    new=1,
    "N",
    BLANK()
)

qq7.PNG

 

Best regards,
Lionel Chen

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

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors