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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kuto
New Member

number of visits

Hi 

need help to calculate:

-number of visits per ID per department during period (count distinct id once per day, exclude duplicate).

the result of measures:

number of customers who visits 4 time during period =1 (ID 123)

number of customers who visits 3 time during period =1

if no custome have 4 visit the result 0

12.png

 

 

2 ACCEPTED SOLUTIONS

Hi @kuto ,

 

You can try below measure.

 

xifeng_L_0-1716004386388.png

Number of customer with 4 visits during period = COUNTROWS(FILTER(ALL('Table'[Id]),CALCULATE(DISTINCTCOUNT('Table'[Date ]))>=4))

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

 

View solution in original post

ThxAlot
Super User
Super User

ThxAlot_1-1716031584578.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
ThxAlot
Super User
Super User

ThxAlot_1-1716031584578.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



kuto
New Member

Hi @kuto ,

 

You can try below measure.

 

xifeng_L_0-1716004386388.png

Number of customer with 4 visits during period = COUNTROWS(FILTER(ALL('Table'[Id]),CALCULATE(DISTINCTCOUNT('Table'[Date ]))>=4))

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

 

xifeng_L
Super User
Super User

Can you provide some example data or pbix files? Can't copy the data from the screenshot. And, what is you expected result?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.