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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.