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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MH3
Helper V
Helper V

Averages OverDue by Customers

Hi,

I have a OverDue Column for each invoices, and I have a measure for Average OverDue ( but its getting Average on per invoices not on Customer)

Screenshot 2022-01-31 165612.png
The customer names are repeating it should show only one customer per OverDue Average

Can anyone help? 

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@MH3 Create a measure like below:

MEASURE = CALCULATE(AVERAGE(TableName[Overdue Column]),ALLEXCEPT(TableName,TableName[Customer Column]))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

7 REPLIES 7
Tahreem24
Super User
Super User

@MH3 Create a measure like below:

MEASURE = CALCULATE(AVERAGE(TableName[Overdue Column]),ALLEXCEPT(TableName,TableName[Customer Column]))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

AsSalam O Alikum @Tahreem24 

I have used your formula in TOP 10 (Filter by Customers)

But its not working as expected

AveraOVerDue.png

@MH3, Wa laikum Assalam.

Try to take only Customer column and newly created above measure and then check.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Tahreem24  Yes, but It should show by OverDueDays Column

(your measure works only with CustomerName) 


magr uske sath work karna chaiye 😞

@MH3  ALright then make this adjustment in that measure:

MEASURE = CALCULATE(AVERAGE(TableName[Overdue Column]),ALLEXCEPT(TableName,TableName[Customer Column], TableName[OverDueDays]))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Tahreem24 
I am confused a bit,

I have calculated OverDueDays in my Receivables Table according to the invoices

But I have used your two Formulas and they are showing different results

Which one is the correct one?

1) ALLEXCEPT(Customer,Customer[CustomerName]))


With AllExcept( Customers, CustomerName)With AllExcept( Customers, CustomerName)

2) ALLEXCEPT(Receivables,Customer[CustomerName],Receivables[OverDueCol]))


ALLEXCEPT(Receivables,Customer[CustomerName],Receivables[OverDueCol]))ALLEXCEPT(Receivables,Customer[CustomerName],Receivables[OverDueCol]))

There is a 2 Customer difference between them, which one should be correct?

Thanks @Tahreem24 

I figured it out I was doing a mistake.

Now, its showing results as expected but there customer top 10 can be sorted ascending? 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.