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,
We have a graph showing data by month. Nothing veru special.
Now the thing is that data is not yet complete and can be up to 2 months before that data is complete.
We are looking for a way that the vizual can show us data excluding the last 2 months it will find in the source.
To make it a bit more visual:
So in this data set there is data up till August. But August and July we would like to not show.
Of course we can do that in the filter, but then we would have to manually change this every month.
Was trying to see if it could automatically done with 'relative date' option or something.
But can't find anything.
Maybe somebody has an idea how to achieve this (fairly easy)?
Solved! Go to Solution.
@rpinxt ,
1. Create a calculated column.
Month = 'Table'[Date].[MonthNo]
Flag =
var _mm = MAX('Table'[Month])
return
SWITCH(
TRUE(),
MONTH('Table'[Date]) = _mm || MONTH('Table'[Date]) = _mm-1, "Exclude",
"Include"
)
Thanks @ddpl see what you are doing there.
Bit more complicated for me as I am using a calculated date table with multiple sources.
But was able to make it work using the max of the source of the visual and put include and exclude on the month numbers of the date table. 😁
(months of other years posed no problem as the visual looks only at 1 year)
@rpinxt ,
1. Create a calculated column.
Month = 'Table'[Date].[MonthNo]
Flag =
var _mm = MAX('Table'[Month])
return
SWITCH(
TRUE(),
MONTH('Table'[Date]) = _mm || MONTH('Table'[Date]) = _mm-1, "Exclude",
"Include"
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.