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
ssspk
Helper I
Helper I

How to get the Recurring/Repeat Users based on the table data?

Hello Team,

I would like to get the Recurring/Repeat Users from table 'data'. Table has a column called 'servertime' , 'user'.

error_re_user.png

 

 

 

_UserOccurrences = SUMMARIZE( data, data[user], "UserCount", COUNTROWS(data) )

Identify Recurring Users:

_RecurringUsers = FILTER( _UserOccurrences, [UserCount] > 1 )

 

Also the other approach,

error_screen.png

Bo th the methods retun error.

How to resolve the error?

 

Thanks nad Refards,

Siva

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

Hi @ssspk ,

Depending on the information you provided, you are walking on the right path. You can solve your problem by following these steps:
Sample data:

vyifanwmsft_2-1711417585479.png

 

1.Add a new TABLE.

vyifanwmsft_0-1711417348481.png

Table = 
VAR _UserOccurrences =
    SUMMARIZE ( data, data[user], "UserCount", COUNTROWS ( data ) )
VAR _RecurringUsers =
    FILTER ( _UserOccurrences, [UserCount] > 1 )
RETURN
    _RecurringUsers

 

Final output:

vyifanwmsft_1-1711417467502.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

1 REPLY 1
v-yifanw-msft
Community Support
Community Support

Hi @ssspk ,

Depending on the information you provided, you are walking on the right path. You can solve your problem by following these steps:
Sample data:

vyifanwmsft_2-1711417585479.png

 

1.Add a new TABLE.

vyifanwmsft_0-1711417348481.png

Table = 
VAR _UserOccurrences =
    SUMMARIZE ( data, data[user], "UserCount", COUNTROWS ( data ) )
VAR _RecurringUsers =
    FILTER ( _UserOccurrences, [UserCount] > 1 )
RETURN
    _RecurringUsers

 

Final output:

vyifanwmsft_1-1711417467502.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

 

Helpful resources

Announcements
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.

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.