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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
saadat_rda
Frequent Visitor

PowerBi Matrix Visual

Hi I have a powerbi repot that used a matrix visual that has rows Client name, Invoice number, and columns are Number of days overdue and lastly amount receivable.
The value column 'Days overdue by' is a measure that I have created from the invoice due date in my data set. The measure looks like:
Date_Diff = DATEDIFF(MAX(DebtorsDashboardView[duedate]),TODAY(),DAY)
The idea is when someone expands the matrix table, it'll then show the invoice number.
 
However, if a client has mulitple invoices due, and if the matrix visual is not expanded, then the row is picking the most recent invoice date value.
 
e.g:
Client A has invoices 1 that is 28 days over due Client A also has invoices 2 which is 15 days overdue.
The row totals are showing the 15 days over for client A. I'd like for it to show 28 days (the oldest invoice date that is)
1 ACCEPTED SOLUTION
Fthrs_Analytics
Frequent Visitor

Should the DATEDIFF() function be calculating the difference from the minimum due date, rather than the max?

View solution in original post

2 REPLIES 2
saadat_rda
Frequent Visitor

Indeed it should have. Thanks @Fthrs_Analytics !

Fthrs_Analytics
Frequent Visitor

Should the DATEDIFF() function be calculating the difference from the minimum due date, rather than the max?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.