Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48084

Re: DAX Semantic error

$
0
0



 

Are Joe Reporting End Date and Joe Reporting Start Date measures? The error doesn't occur in the case that they are both calculated column. According to the BOL, DATEADD(<dates>,<number_of_intervals>,<interval>),  the first parameter <dates> should be a date column, if it is a measure in your case, the error occurs based on my test. 

 


Joe Reporting Start Date :=

DATEADD (
    [Joe Reporting End Date],
    CALCULATE (
        COUNTROWS ( CustomerReportingPeriod ),
        FILTER (
            ALL ( CustomerReportingPeriod[MonthIndex] ),
            CustomerReportingPeriod[MonthIndex]
                MIN ( CustomerReportingPeriod[MonthIndex] )
        )
    ),
    MONTH
)

 

 


Viewing all articles
Browse latest Browse all 48084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>