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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
I am trying to calculate a column for previous month value & it is returning blank value
Many thanks
Solved! Go to Solution.
Hi @chavanr ,
You could create a column by the following formula:
Recycling Tonnes LM =
VAR _a =
EOMONTH ( 'Collection Transactions New'[DWHDimDateKey], -1 )
RETURN
CALCULATE (
SUM ( [Recycling Tonnes New] ),
FILTER ( 'Collection Transactions New', EOMONTH ( [DWHDimDateKey], 0 ) = _a ))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @chavanr ,
You could create a column by the following formula:
Recycling Tonnes LM =
VAR _a =
EOMONTH ( 'Collection Transactions New'[DWHDimDateKey], -1 )
RETURN
CALCULATE (
SUM ( [Recycling Tonnes New] ),
FILTER ( 'Collection Transactions New', EOMONTH ( [DWHDimDateKey], 0 ) = _a ))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @chavanr ,
The formula in the image is different from the one on the text message.
First make sure the field 'Calendar'[DWHDimDateKey] is on date format
Try the following:
Recycling Tonnes LM =
CALCULATE (
SUM('Collection Transactions New'[Recycling Tonnes New]),
PREVIOUSMONTH ( 'Calendar'[DWHDimDateKey] )
)
Remove .month at the end of the formula
It is still giving blank values,DWHDimDateKey is marked as date table.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |