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,
Could you help me identify why in some cases I am getting (Blank) for Last Snapshot -1? What is my mistake in DAX?
Solved! Go to Solution.
Hi @amitchandak , @KNP , @Anonymous ,
Thank you for all your help. I have resolved my issue using:
Hi @amitchandak , @KNP , @Anonymous ,
Thank you for all your help. I have resolved my issue using:
Hi @karo ,
It's glad to hear that you have resolve the problem. And thanks for sharing the solution here. Could you please mark the helpful post as Answered since it has been resolved? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi @karo ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi @karo ,
Please update the formula of measure [Last Snapshot -1] as below and check if you can get the correct result...
Last Snapshot -1 = EOMONTH([Last Snapshot],-1)
Best Regards
@karo , try like
Last Snapshot -1 = date(Year([Last Snapshot]), month([Last Snapshot])-1, day([Last Snapshot]) )
dateadd need continuous dates in the table
Date as Dateadd - Decoding Date and Calendar 5-5
https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power...
@amitchandak Thank you for reply, but still this is not the solution. When I am trying DATE() then I am getting even worse results:
I might be wrong but I think @amitchandak was trying to refer to the column, maybe?
LastSnapshotDate =
DATE (
YEAR ( 'Snapshot Date'[Snapshot Date] ),
MONTH ( 'Snapshot Date'[Snapshot Date] ) - 1,
DAY ( 'Snapshot Date'[Snapshot Date] )
)
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |