Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi everybody,
i want to compare sales data between current year and the last year , i used the follwing DAX Formula :
When i don't usefilters ( by sector , by product , by product category )the two formula works very well , but when i filter my data by sector or client for exemple the first formula works , but the last year formula retunr an error as in the attachement.
someone can help me?



Solved! Go to Solution.
i found this solution in forum
If it is a measure which is using any date function which expects contiguous date range, bi-directional filter ends up removing some dates and thus its no longer a contiguous date range which could be crashing the measure.
Both Cross Filter Direction for date is not yet supported. Therefore they have designed an error, which is the one we see here. Once you change the Cross Filter Direction to Single, there is nothing that isn't supported anymore, therefore the error goes away.
I can’t see all the images, but the last image/error suggests your date table doesn’t have a contiguous date range. Readthe rules at my blog.
https://exceleratorbi.com.au/power-pivot-calendar-tables/
thanks Matt for replying , my date table have a coniguous date range , with no missing dates and no duplicate dates , my formula works perfectely whene i clear all filter . or whene the current year have no sales , but if i use filter , my table return this error .
i found this solution in forum
If it is a measure which is using any date function which expects contiguous date range, bi-directional filter ends up removing some dates and thus its no longer a contiguous date range which could be crashing the measure.
Both Cross Filter Direction for date is not yet supported. Therefore they have designed an error, which is the one we see here. Once you change the Cross Filter Direction to Single, there is nothing that isn't supported anymore, therefore the error goes away.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 67 | |
| 34 | |
| 32 | |
| 29 |