Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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.
Solved! Go to 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()
)
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.
@Anonymous , Create a Column sub-category Rank. Date inside the customer. Rank =1
if([Rank] =1,"N",blank())
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
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()
)
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.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
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!