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
When adding the following measure:
valor_líquido_ano_anterior = CALCULATE(SUM('order'[valor_líquido]);SAMEPERIODLASTYEAR('calendário'[data]))to the matrix:
I get the error:
The field 'calendario'[data] is a date field calculated with:
CALENDAR (DATE (2012; 1; 1); DATE (2017; 12; 31))
So, it is contiguous and it is in Calendar table, which is related with table 'order'.
So, why do I get this error?
It only showed up in the May-2017 version of PBI Desktop.
what is your data type?
Proud to be a Super User!
The date is field is "Date" type and the measure is "Decimal Number".
i think the issue might be the bidirectional relationship, if you change it to single, does it still give you teh same issue?
Proud to be a Super User!
@webportal maybe this thread can help?
https://community.powerbi.com/t5/Desktop/Contiguous-date-selection-error-YTD-LY/td-p/55789
Proud to be a Super User!
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 |
|---|---|
| 104 | |
| 82 | |
| 71 | |
| 50 | |
| 46 |