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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
coolshib
Helper III
Helper III

Dax Formula to to visualize common entries

Dear All,

I am looking for a formula/solution to prepare a report of my all vendors whos invoices i receive every month.

For example, i have hundreds of vendors with whome i have been doing business. Some of them i do business once or twice in a year, but there are some vendors with whome i do business every month.

I have a very big data as per below format.

Invoice DateVendor NameAmount
01/05/2018ABC Company15000
25/07/2018XYZ Company25000
19/07/2018ABC Company35000

  

I am looking for a solution which gives me the following report

 

Vendor NameAverage Invoice AmountLast Invoice Amount
ABC Company                          32,500.00                   35,000.00

 

Hope i have managed to explain my query.

Thanks in Advance.

Best Regards

Shib

1 ACCEPTED SOLUTION

@coolshib

 

check the file: https://1drv.ms/u/s!AiiWkkwHZChHj04MaHUz8YqTBh1p

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

9 REPLIES 9
LivioLanzo
Solution Sage
Solution Sage

Hi @coolshib,

 

my suggestion is that you build this model:

 

Capture.PNG

 

Then you can do:

 

Average Invoice Amount = AVERAGE( Invoices[Amount] )
 
Last Invoice Amount =
AVERAGEX( TOPN( 1, Invoices, Invoices[Invoice Date], DESC ), Invoices[Amount] )

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

hi @LivioLanzo,

Thank you so much for your prompt response.

Just wanted to check whether this model would also filter the vendor name whose invoices i receive every month not the irregular ones.

Also i want month wise average invoice value to include in this report.

Thanks alot.

Best Regards

Shib

Hi @coolshib,

 

yes it can be done but there needs to be a logic behind the invoices that are considered to be received monthly. What if the vendor sends the invoice monthly and then stop for 1 month and then start again? Are they still considered monthly? If yes, how many months of interruption are they allowed to have? There needs to be some categorization done

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Hi @LivioLanzo,
No that will not be considered as regular monthly.. I should get minimun a single invoice in every month then only it will be considered as regular monthly vendor.
Regards
Shib

Hi @coolshib

 

are you able to post a larger data set? Are you trying to filter out vendors who do not send an invoice each month?

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Hi @LivioLanzo,

Yes i want to filter out vendors who do not send an invoice each month.

Please find below the sample data set for your reference. The period of the Data set is Jan 2018 - Nov 2018.

Month wise Vendors Report.xlsx

 

I am trying to prepare the report of the vendors who send me invoice each month as per below format.

 

Vendor NameMonthly Average of Invoice AmountAverage of Invoice AmountLast Invoice Amount

 

Best Regards

Shib

@coolshib

 

check the file: https://1drv.ms/u/s!AiiWkkwHZChHj04MaHUz8YqTBh1p

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Thank you so much @LivioLanzo.

Works like a charme.

The report delivers what i exactly wanted.

Thanks a ton.

Best Regards

Shib

 

Hi @LivioLanzon,
No that will not be considered as regular monthly.. I should get minimun a single invoice in every month then only it will be considered as regular monthly vendor.
Regards
Shib

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors