DAX : Cummulative Sum including Missing dates in Fact

Hi All

we got a situation where we need to calculate daily budget , even  if fact table missing some dates we need to calculate for dates



Cumulative Budget =
VAR RowDate = DateTime[Date]
RETURN
    CALCULATE (
        SUM ( DateTime[Budget]),
        FILTER (
            DateTime,
            DateTime[Date] <= RowDate   && YEAR ( DateTime[Date] ) = YEAR ( RowDate )  && month ( DateTime[Date] ) = MONTH( ( RowDate )

Comments

  1. This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation. Thank you for sharing wonderful information with us to get some idea about that content.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore

    ReplyDelete

Post a Comment

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces