Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
how can i get the last invoices date for each custmer by reports or by Powe BI iam using BC?
Hi @ahmed-,
Thank you for reaching out to the Microsoft fabric community forum.
Thank you @Ashish_Mathur, @ray_aramburo for your response regarding issue.
By using this Dax you get the last invoices date for each customer.
Last_Invoice_Date =
CALCULATE(
MAX(InvoicesDataTable[InvoiceDate]),
ALLEXCEPT(InvoicesDataTable, InvoicesDataTable[CustomerID])
)
I tested it with my sample data, and it worked fine. Please find the attached Pbix for your reference.
If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, so others can benefit as well.
Best Regards,
Harshitha.
Hi,
What is BC? Using measures, you will have to use the LASTNONBLANK() function. To receive more help, share some data to work with and show the expected result. Share data in a format that can be pasted in an MS Excel file.
Hi @ahmed- you will need to create a measure with a similar structure like this (I don't knpw your data) :
Last_Invoice_Date = CALCULATE(MAX(InvoicesDataTable[InvoiceDate]), ALLSELECTED(CustomersDataTable[Customer]))
If this is helpful mark it as solved so it can help for future references, otherwise, kindly provide more details of your data.
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |