Forum Discussion
homelander123
1 year agoHelper I
Dynamic name
CurrentMonthLastYearCount = VAR SelectedMonth = MAX(Query1[SetupDate]) VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -13) + 1 VAR LastYearSameMonthEnd = EOMONTH(SelectedMonth, -12) VAR Resu...
- Anonymous1 year ago
Your solution is so great Punithurs and lbendlin
Hi, homelander123
I think you can refer to this blog post from the community below:
Dynamic titles in Power BI - Microsoft Fabric Community
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
homelander123
1 year agoHelper I
Punithurs It says syntax incorrect
lbendlin
1 year agoSuper User
CurrentMonthLastYearCount =
CALCULATE( SUM(Query1[NewCount]), SAMEPERIODLASTYEAR(Dates[Date]))
This assumes that you have a proper calendar table "Dates" is your data model.