Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have a YTD data souce so each month is ytd data and I need only the month data .I have created three calculated columns to achieve this:
1. YTD FT3 = Calculate(Sum('2022 FT3'[Consolidated])): This gives me the Cumulative Consolidated
2. Previous mnth FT3 = CALCULATE([YTD FT3],PREVIOUSMONTH('Calendar'[Date])): this gives me the previous Cumulative Consolidated
Solved! Go to Solution.
Hi @LynnM ,
The logic of CALCULATETABLE() function is as below.
CALCULATETABLE(<expression>[, <filter1> [, <filter2> [, …]]])
I think [Current Mnth ft3] is a measure and you add a measure in filter field of CALCULATETABLE() function. So you will get this error.
Here I suggest you to try SELECTCOLUMNS() function to achieve your goal.
Month FT3 =
SELECTCOLUMNS('2022 FT3',[Current Mnth ft3])
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@LynnM , You should try measures like examples
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
Thank you for the swift response.
I used your recommended calcs as follows:
Hi @LynnM ,
The logic of CALCULATETABLE() function is as below.
CALCULATETABLE(<expression>[, <filter1> [, <filter2> [, …]]])
I think [Current Mnth ft3] is a measure and you add a measure in filter field of CALCULATETABLE() function. So you will get this error.
Here I suggest you to try SELECTCOLUMNS() function to achieve your goal.
Month FT3 =
SELECTCOLUMNS('2022 FT3',[Current Mnth ft3])
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 74 | |
| 50 | |
| 47 | |
| 44 |