Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lcannon
Frequent Visitor

Sales date gap

I’m developing a sales report in Power BI and have some items that were not in the data for a 4 week period. Once the items began showing in the data again, the DAX formulas I’m using began giving me the “contiguous date error”.  I’ve tried using the DAX for Dateadd or SamePeriodLastyear.  Is there a way to have that gap of time ignored for just those particular items?

 

This is screenshot of the gap:   

Sales gap.JPG

1 ACCEPTED SOLUTION

Since I can't seem to get the link to work, my team determined a work around for this.  We changed from using the imported query to using the SSAS tabular model we had been developing.  We're going to continue to try to figure out how to get the imported version to work, but we needed to get this live for a client.

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

Can you share where you are getting this error?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

 

The gap range is 10/20 - 11/10.  I started receiving the data again on 11/17.  When I filter to only see through 11/10, I have no issues.  As soon as I add in the week of 11/17, the error happens.

 

I receive weekly data, always with a Friday date.

 

(Not sure I can share the actual pbix file due to confidentiality restrictions within my company.)

understood, you can share sample data (non sensitive)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Not sure this is going to be usable for you since it uses an imported query. Or if I set up the dropbox correctly.

 

https://www.dropbox.com/home/PowerBI%20community


@lcannon wrote:

Not sure this is going to be usable for you since it uses an imported query. Or if I set up the dropbox correctly.

 

https://www.dropbox.com/home/PowerBI%20community


@lcannon

This link is not available, can you share a valid link? Do note to mask sensitive data before uploading.

Since I can't seem to get the link to work, my team determined a work around for this.  We changed from using the imported query to using the SSAS tabular model we had been developing.  We're going to continue to try to figure out how to get the imported version to work, but we needed to get this live for a client.

If you are able to open the file, the measure I'm trying to fix is Unit Sales YA

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.