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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I have a month selector, as well as a 'last x months' parameter selector.
How do you show a dynamic title or header based on the selected month and selected last x months?
As examples in the image below, I would like to show the selected months (highlighted in yellow). Thanks.
Solved! Go to Solution.
hi @Oros
You will need to use a disconnected table for the count of months to add and the selected months. Below is the sample formula I used to obtain the title in the table in the screenshot
Periods Included =
VAR FilteredTable =
FILTER (
CALCULATETABLE (
VALUES ( DatesTable[Date] ),
DATESINPERIOD (
DatesTable[Date],
MAX ( DisconnectedDatesTable[Date] ),
- [XPeriod Value],
MONTH
)
),
DatesTable[Date]
= CALCULATE ( EOMONTH ( MAX ( DatesTable[Date] ), -1 ) + 1 )
)
VAR AddedColumns =
ADDCOLUMNS ( FilteredTable, "@Month Name", FORMAT ( [Date], "mmm" ) )
RETURN
CONCATENATEX ( AddedColumns, [@Month Name], ", ", [Date], ASC )
Please see the attached pbix.
hi @Oros
You will need to use a disconnected table for the count of months to add and the selected months. Below is the sample formula I used to obtain the title in the table in the screenshot
Periods Included =
VAR FilteredTable =
FILTER (
CALCULATETABLE (
VALUES ( DatesTable[Date] ),
DATESINPERIOD (
DatesTable[Date],
MAX ( DisconnectedDatesTable[Date] ),
- [XPeriod Value],
MONTH
)
),
DatesTable[Date]
= CALCULATE ( EOMONTH ( MAX ( DatesTable[Date] ), -1 ) + 1 )
)
VAR AddedColumns =
ADDCOLUMNS ( FilteredTable, "@Month Name", FORMAT ( [Date], "mmm" ) )
RETURN
CONCATENATEX ( AddedColumns, [@Month Name], ", ", [Date], ASC )
Please see the attached pbix.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 55 | |
| 38 | |
| 28 | |
| 22 |
| User | Count |
|---|---|
| 133 | |
| 121 | |
| 54 | |
| 37 | |
| 31 |