Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi guys,
I'm trying to calculate the sales of the same period but 2 years ago.
I have tried the below, but it didn't work.
Many thanks!
Solved! Go to Solution.
@RenataOGardner You can create a measure like below
Proud to be a Super User!
@RenataOGardner You can create a measure like below
Proud to be a Super User!
You can try following formula
Sales SamePeriod2Years =
CALCULATE (
SUM(Sales[Net Price]),
DATEADD ('Date'[Date],-2,YEAR )
)
Regards,
Sayali
If this post helps, then please consider Accept it as the solution to help others find it more quickly
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.