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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

AVERAGE CUSTOMERS PER WEEK

I HAVE A TROUBLE

 

I NEED THE AVERAGE CUSTOMER'S OF ANY YEAR-NUMBER WEEK (1 TO 52), THE PERFORMANCE IT'S THAT ONLY TAKE THE DIFFERENTE CUSTOMER'S IN THE LAP ACUM, EXAMPLE:

 

IF JIM MORTENSEN (CUSTOMER) APPEAR EN EVERY WEEK, THE DAX ONLY TAKE LIKE A 1 CUSTOMER EN X PERIOD, I NEED THAT HE COUNT SEVERAL TIMES THAT THE WEEKS HE APPEAR'S.

 

CAN ANYBODY HELPME PLEASE.

Imagen1.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CESARPULIDOGDL,

Thanks for the reply from Jihwan_Kim.

 

Could you please share a bit more about your data?

 

Here is my sample data, if you want to count the average distinct customers per week, you could try the following DAX:

vqiaqimsftv_0-1735882206952.png

Average Customers Per Year-Week = 
VAR _CustomersPerWeek =
    SUMMARIZE(
        'Table', 
        'Table'[Year],
        'Table'[WeekNumber],
        "DistinctCustomers", DISTINCTCOUNT('Table'[CustomerID])
    )
RETURN
    AVERAGEX(_CustomersPerWeek, [DistinctCustomers])

I would be grateful if you could provide me with the pbix file or sample data.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @CESARPULIDOGDL,

Thanks for the reply from Jihwan_Kim.

 

Could you please share a bit more about your data?

 

Here is my sample data, if you want to count the average distinct customers per week, you could try the following DAX:

vqiaqimsftv_0-1735882206952.png

Average Customers Per Year-Week = 
VAR _CustomersPerWeek =
    SUMMARIZE(
        'Table', 
        'Table'[Year],
        'Table'[WeekNumber],
        "DistinctCustomers", DISTINCTCOUNT('Table'[CustomerID])
    )
RETURN
    AVERAGEX(_CustomersPerWeek, [DistinctCustomers])

I would be grateful if you could provide me with the pbix file or sample data.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

THANK U, I CAN DO IT WITH YOUR HELP... 🙂

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your filter context looks like, but please something like below whether it suits your requirement.

 

expected result measure: =
DIVIDE (
    SUMX ( VALUES ( calendario[Ano+Semana] ), [#cliente compradores >3 cajetillas] ),
    DISTINCTCOUNT ( calendario[Ano+Semana] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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