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
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
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.