The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |