Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello.
I have this table:
| FacilityID | Month | InsurerID | Amount Owing | 1-30 Days | 120+ Days | 31-60 Days | 61-90 Days | 91-120 Days |
| SS00001 | 3/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 4/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 5/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 6/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 1/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 2/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 5/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 7/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 11/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 6/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 7/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 8/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 11/1/2024 0:00 | 10006 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 2/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
| SS00001 | 8/1/2024 0:00 | 10005 | $999 | 999 | 999 | 999 | 999 | 999 |
I would like create a clustered column visual with the data except I want the data to be filtered by the most recent month that is selected in a date slicer. I also want to include several rows.
I was able to acheive something similar albeit only with one column. :
Most Recent Month Payment Amount =
VAR LatestMonth = MONTH([LatestDate])
VAR LatestYear = YEAR([LatestDate])
VAR PaymentAmount =
CALCULATE(
SUM('Master Payments'[Amount]),
MONTH(DimDate[Date]) = LatestMonth && YEAR(DimDate[Date]) = LatestYear
)
RETURN
IF(
ISBLANK(PaymentAmount),
"None",
PaymentAmount
)
Solved! Go to Solution.
Hi,
PBI file attached.
Hope this helps.
This is very similar to aging of receivables report I created.
There is a link to the tutorial on YouTube which has the sampe pbix in the description.
Hi @christopherocc ,
Can you please give more context, i mean you can show the desired output and which several rows you want to display?
Hi @christopherocc ,
Please try the below steps:
Ensure you have a proper Date Table in your model, related to your data table (Master Payments). Use this Date Table for your slicer. For the slicer, set the field to DimDate[Date] (or equivalent) and enable the "Single select" option.
You need a measure that dynamically identifies the latest month based on the slicer selection:
Most Recent Month Filter =
VAR SelectedDate = MAX(DimDate[Date]) -- Gets the latest date selected in slicer
VAR LatestMonth = MONTH(SelectedDate)
VAR LatestYear = YEAR(SelectedDate)
RETURN
IF(
ISBLANK(SelectedDate),
BLANK(),
CALCULATE(
SUM('Master Payments'[Amount]),
MONTH('Master Payments'[Month]) = LatestMonth &&
YEAR('Master Payments'[Month]) = LatestYear
)
)Repeat similar logic for each column you want in the visual. For example:
Most Recent Amount Owing =
VAR SelectedDate = MAX(DimDate[Date])
VAR LatestMonth = MONTH(SelectedDate)
VAR LatestYear = YEAR(SelectedDate)
RETURN
CALCULATE(
SUM('Master Payments'[Amount Owing]),
MONTH('Master Payments'[Month]) = LatestMonth &&
YEAR('Master Payments'[Month]) = LatestYear
)Most Recent 1-30 Days =
VAR SelectedDate = MAX(DimDate[Date])
VAR LatestMonth = MONTH(SelectedDate)
VAR LatestYear = YEAR(SelectedDate)
RETURN
CALCULATE(
SUM('Master Payments'[1-30 Days]),
MONTH('Master Payments'[Month]) = LatestMonth &&
YEAR('Master Payments'[Month]) = LatestYear
)Repeat this logic for all the other columns: 120+ Days, 31-60 Days, 61-90 Days, 91-120 Days.
To make it clear which month the visual represents, create a dynamic title measure:
Dynamic Title =
VAR SelectedDate = MAX(DimDate[Date])
RETURN
"Data for " & FORMAT(SelectedDate, "MMMM YYYY")Set this measure as the title of your visual (in the Format pane > Title > "fx" button).
Ensure DimDate and Master Payments are properly related in your model, with DimDate as the one-side and Master Payments[Month] as the many-side.
With these measures, you can include several columns in your clustered column visual, all dynamically filtered by the most recent month selected in the slicer.
Please mark this as solution if it helps. Appreciate kudos.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 18 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 41 | |
| 40 | |
| 39 | |
| 38 |