Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello, I have a very long table such as below with data everyday from the past 5 years on which customer visited our store:
| Date | Customer ID (stored as text) |
| 1/1/2000 | 111 |
| 1/1/2000 | 222 |
| 1/1/2000 | 333 |
| 1/1/2000 | 444 |
| 1/2/2000 | 222 |
| 1/2/2000 | 333 |
| 1/2/2000 | 444 |
| 1/2/2000 | 555 |
| 1/3/2000 | 222 |
etc for 5 years
I am trying to create a clusterd column chart showing the number of unique customers that visited our store each day, month (drilled up), quarter (drilled up), and year (drilled up again).
I created a column as below:
Solved! Go to Solution.
But I would like the average of distinct count of customer ID's by day
If you want it across days then you need to SUMMARIZE across days. Then add the DISTINCTCOUNT for each day and finally return the AVERAGEX of that column.
Hi, @alya1
Here is my detailed addition to IBendlin, maybe you can try the DAX expression below
Average Unique Customers =
AVERAGEX(
VALUES('Table'[Date]),
CALCULATE(DISTINCTCOUNT('Table'[Customer ID]))
)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @alya1
Here is my detailed addition to IBendlin, maybe you can try the DAX expression below
Average Unique Customers =
AVERAGEX(
VALUES('Table'[Date]),
CALCULATE(DISTINCTCOUNT('Table'[Customer ID]))
)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
But I would like the average of distinct count of customer ID's by day
If you want it across days then you need to SUMMARIZE across days. Then add the DISTINCTCOUNT for each day and finally return the AVERAGEX of that column.
Hi Ibendlin, thank you for your response. Would you mind writing out the dax please? I tried Yongkangs above but am still having the commented issue.
Please provide sample data that fully covers your issue. Needs more months and some years maybe.
Please show the expected outcome based on the sample data you provided.
Ah thank you so much! while writting out the data I realized I made an initial mistake! Your idea works 🙂 Thank you again!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 46 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 75 | |
| 41 | |
| 26 | |
| 26 |