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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Im having a logic doubt problem that I hope you can help with.
I have a column with Orders, Distinct Customer, Orders per Distict Customer.
orders = SUMX(Orders,Orders[Count])
distict Customer = DISTINCTCOUNT(Orders[Customer_code])
orders per distinct cust = [orders]/[distict Customer]
All the numbers in that table are correct. However, the 2022 number is not intuitive. It should be around 56.
How would you enforce that?
Hi @fosterXO
You may try something like:
distict Customer =
AVERAGEX (
SUMMARIZE ( 'Table', [Year], [Month] ),
CALCULATE ( DISTINCTCOUNT ( Orders[Customer_code] ) )
)
hi @fosterXO
it is not intuitive , because distinctcount is semi-additive, or because one Customer_code could present at multiple months, but it is counted once only in Year 2022. Make sense?
Yes, the question would be how to show something that is more intuitive for users. Maybe an average?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 18 | |
| 14 | |
| 14 |