Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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 May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
11 | |
10 | |
8 | |
7 | |
7 |