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