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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Guys,
I'm trying to get last month's total sales for each salesperson. But as I'm using it, it's not working. What's wrong with the measurement?
Meta por supervisor LM =
CALCULATE(
[_Total vendas],
DATEADD(d_calendario[Date],-1,MONTH))
Solved! Go to Solution.
I test with simple data and it came out like this.
Is the result you want the same as above?
There seems to be no problem with measure.
Check d_calendario has a Mark as date table set or check the connection between d_calendario and fact table
I test with simple data and it came out like this.
Is the result you want the same as above?
Oh, I understood. Then try this.
_LM =
CALCULATE(
[_Total Amount],
FactTable[YYYYMM] = FORMAT(EDATE(TODAY(), -1), "YYYYMM")
)
Write the date you want in the TODAY() part.
@ProjectKM
I used this measure and its working. Thanks
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |