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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
if today is 28/06/2024
i want the total amount of measure Sold from 28/06/2023 UNTIL 27/06/2024.
I have table Time and columns Date, Year, Day, Month
I have measure Sold
How i can reach this result?
Thank you so much
Solved! Go to Solution.
Hi @Anonymous ,
You can try below measure.
MEASURE =
CALCULATE (
SUM ( Table[Amount] ),
TREATAS ( CALENDAR ( EDATE ( TODAY (), -12 ), TODAY () - 1 ), Table[Date] )
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
@Anonymous , You can achieve this using measures
Total Sold Last Year to Yesterday =
VAR TodayDate = TODAY()
VAR StartDate = DATE(YEAR(TodayDate) - 1, MONTH(TodayDate), DAY(TodayDate))
VAR EndDate = TodayDate - 1
RETURN
CALCULATE(
[Sold],
FILTER(
'Time',
'Time'[Date] >= StartDate && 'Time'[Date] <= EndDate
)
)
Proud to be a Super User! |
|
Hi @Anonymous ,
You can try below measure.
MEASURE =
CALCULATE (
SUM ( Table[Amount] ),
TREATAS ( CALENDAR ( EDATE ( TODAY (), -12 ), TODAY () - 1 ), Table[Date] )
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
thank you it works!