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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fosterXO
Frequent Visitor

Non intuitive total

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]

 

23-03-06 15_21_16.png

 

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?

3 REPLIES 3
tamerj1
Super User
Super User

Hi @fosterXO 
You may try something like:

distict Customer =
AVERAGEX (
    SUMMARIZE ( 'Table', [Year], [Month] ),
    CALCULATE ( DISTINCTCOUNT ( Orders[Customer_code] ) )
)
FreemanZ
Super User
Super User

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?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors