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 have a table which shows total charges, How to i get the values charges for the current month in one column and for the previous month in another column. I can set filters , but how can i do it automatically? without me going and changing it at the EOM. Please advice.
I am connecting to SSAS Cubes and We ddeploy this to the report server, my new measure is greyed out, to try something like this
current_month_sales = CALCULATE(SUM('Table1'[Sales]),FILTER('Table1',MONTH('Table1'[Month])=MONTH(TODAY())))
Thanks
Solved! Go to Solution.
FInally this worked
If you have a Year Month column in your Date table then the measure for the current month could be
Current Month Sales =
CALCULATE (
SUM ( 'Table'[Sales] ),
'Date'[Year Month] = FORMAT ( TODAY (), "YYYYMM" )
)
and previous month would be
Prev month sales =
CALCULATE (
SUM ( 'Table'[Sales] ),
TREATAS ( { TODAY () }, 'Date'[Date] ),
PREVIOUSMONTH ( 'Date'[Date] )
)
thanks @johnt75 I have a date heirarchy YEAR SALES.CREATEDATE,MONTH,QUARTER,YEAR.
So i used this
Current Month Sales1 =
CALCULATE (
SUM ( 'Transactions'[Set 01 Charge Amount] ),
'Transactions'[Charge Create Date.Month] = FORMAT ( TODAY (), "YYYYMM" )
)
And it did not return nothing at all.
I tried this as well and did not get any values. Please advice
Thanks
FInally this worked
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.