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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am not proficient user in DAX so I ask your support.
I calculated the 12M as follows:
12MR = calculate(
sum(Sales[Or Sales Eur]);
datesinperiod(Calendar[YMD];lastdate(Calendar[YMD]);-12;MONTH)
)
Basically it works well but if I divide the data in categories, if one category is zero in a specific month (so it is blank), the 12M calculation gets me zero instead of the sum of the previous 12 months. Could you help me? Thanks
That's pretty much impossible. It looks like you just don't have any sales in the last 12 months for the months that report 0.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 12 |