How to fix Mdxscript(model) (6,68) calculation error in measure 'Sheetname': Function 'Dateadd' only works with contiguous data selections:

JUNHEE CHO 0 Reputation points
2024-09-30T09:19:31.85+00:00

Hi team,

I have encountered the below error message when refreshing the data.

The query did not run or the Data Model could not be accessed. Here's the error message we got:

Mdxscript(model) (6,68) calculation error in measure 'Sheet name': Function 'Dateadd' only works with contiguous data selections:

This master excel file is connected with 3 different excel files containing the raw data through the power query.

Could you please let me know how to resolve this issue? Your feedback will be greatly appreciated.

Best,

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,872 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,011 Reputation points Microsoft External Staff
    2024-10-01T01:32:34.01+00:00

    Hi,

    Based on the error message "Function 'Dateadd' only works with contiguous data selections", it seems the function is incorret.

    I suggest you refer to this function article:

    https://learn.microsoft.com/en-us/dax/dateadd-function-dax

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.