Forum Discussion

butlerjay87's avatar
butlerjay87
Icon for Helper I rankHelper I
5 years ago
Solved

Removing incomplete weeks from daily dataset

Scenario: Daily data being received and visual can be refreshed daily if required. I do have a DimDate file setup but I am also happy to use the source table date info if required/easier. I have gr...
  • mahoneypat's avatar
    5 years ago

    You can build something into your measure to return blank in the current week like this.

     

    NewMeasure =
    VAR thisdateeow =
        MAX ( 'Date'[Date] )
            - WEEKDAY (
                MAX ( 'Date'[Date] )
            ) + 8
    VAR thiseow =
        TODAY ()
            - WEEKDAY (
                TODAY ()
            ) + 8
    RETURN
        IF (
            thisdateeow < thiseow,
            [Your Measure],
            BLANK ()
        )

     

     

    Regards,

    Pat