Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all,
I'm trying to figure out how to visualize based on below condition.
Condition:
Jan 2024 : Posting date < Feb 1st 2024 and clearing date > Jan 31st => Open: 200,000 invoice/$450 / Debit Balance : 500 vendors / $250
Feb 2024 : Posting date < Mac 1st 2024 and clearing date > Feb 28st => Open: 180,000 invoice/$400 / Debit Balance : 300 vendors / $150
Mac 2024 : Posting date <Apr 1st 2024 and clearing date > Mac 31st => Open: 210,000 invoice/$550 / Debit Balance : 400 vendors / $280
Example
Cora ID 123
Posting Date 15 jan 2024
Clearing date 15 Mar 2024
Net due date 5 Feb 2024
Ageing is compare due date of the last day of the month. (In Jan, last date is 31st)
Expected result
Month | Not Due | 0-5 Days | 6-15 Days | 16-30 Days |
Jan | 1 | 0 | 0 | 0 |
Feb | 0 | 1 | 0 | 0 |
Mar | 0 | 0 | 0 | 0 |
My question is
TQVM
Vendor Table: Contains the Vendor ID, Posting Date, Clearing Date, and Net Due Date.
Date Table: A comprehensive date table with a continuous range of dates. Include columns for year, month, day, and month end dates.
Not Due Count =
CALCULATE(
COUNTROWS(Vendor),
Vendor[Net Due Date] > EOMONTH(TODAY(), -1)
)
Age 0-5 Days =
CALCULATE(
COUNTROWS(Vendor),
Vendor[Net Due Date] <= EOMONTH(TODAY(), -1) + 5 &&
Vendor[Net Due Date] > EOMONTH(TODAY(), -1)
)
Age 6-15 Days =
CALCULATE(
COUNTROWS(Vendor),
Vendor[Net Due Date] <= EOMONTH(TODAY(), -1) + 15 &&
Vendor[Net Due Date] > EOMONTH(TODAY(), -1) + 5
)
Age 16-30 Days =
CALCULATE(
COUNTROWS(Vendor),
Vendor[Net Due Date] <= EOMONTH(TODAY(), -1) + 30 &&
Vendor[Net Due Date] > EOMONTH(TODAY(), -1) + 15
)
Hi @eryka_90
First you have to create Calender table. The you have to link this Calender table to vendor table by using Posting date
Then Calculate Ageing bins
Ageing Bins =
VAR DueDate = 'Vendor'[Net Due Date]
VAR LastDayOfMonth = EOMONTH(DueDate, 0)
VAR DaysDifference = DATEDIFF(DueDate, LastDayOfMonth, DAY)
RETURN
SWITCH(TRUE(),
DaysDifference <= 0, "Not Due",
DaysDifference <= 5, "0-5 Days",
DaysDifference <= 15, "6-15 Days",
DaysDifference <= 30, "16-30 Days",
"Over 30 Days"
)
After this create Open Invoice mesure
Open Invoices =
CALCULATE(COUNTROWS('Vendor'),
FILTER('Vendor',
'Vendor'[Posting Date] < DATE(2024, 2, 1) &&
'Vendor'[Clearing Date] > DATE(2024, 1, 31)))
After this create Debit balance measure
Debit Balance =
CALCULATE(SUM('Vendor'[Debit Balance]),
FILTER('Vendor',
'Vendor'[Posting Date] < DATE(2024, 2, 1) &&
'Vendor'[Clearing Date] > DATE(2024, 1, 31))
)
The take Matrix chart and drag month column from calender table in to rows, drag Ageing Bins column into columns and last but not least drag Open Invocie and Debit balance into values.
Let me Know if it works...
Hi @suparnababu8 ,
Cant figure out how open invoice and debit balance worked. Could you explained more detail?
I have attached the sample data in the comment.
TQVM
Please provide sample data in a usable format (table or file) not a picture.
Regards
Phil
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.