March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
When I add a new measure
Solved! Go to Solution.
Hi, @Nolonwabo
Based on your description, I created data to reproduce your scenario.
Test:
Calendar:
Calendar = CALENDARAUTO()
There is a one-to-one relationship between two tables.
You may create a measure as follows.
Pre_Month_Sales =
CALCULATE(
SUM(Test[Sales]),
DATEADD('Calendar'[Date],-1,MONTH)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Nolonwabo
Based on your description, I created data to reproduce your scenario.
Test:
Calendar:
Calendar = CALENDARAUTO()
There is a one-to-one relationship between two tables.
You may create a measure as follows.
Pre_Month_Sales =
CALCULATE(
SUM(Test[Sales]),
DATEADD('Calendar'[Date],-1,MONTH)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |