Forum Discussion

SH0lm3s's avatar
SH0lm3s
Frequent Visitor
4 years ago
Solved

Newbie help required - transforming data

Hi All,

 

I might be trying to run before I can walk but I'm abitious. I've got a data file cvs that I need to add a colunm when it is created in Power BI and the data in current week if set as forecast needs to be deleted. One is this possible and 2 where can I learn how to do this - thanks in advance for helping a newbie and point me in the right direction.

 

Sarah

  • Hi SH0lm3s ,

     

    You can create a measure like below and use it as filter on your visual.

    _filter = 
    IF (
        AND (
            WEEKNUM ( MAX ( 'Order/Forecast'[Date Required] ) ) = WEEKNUM ( TODAY () ),
            MAX ( 'Order/Forecast'[Order/Forecast] ) = "Forecast"
        ),
        0,
        1
    )

     

    Output:-

    Thanks,

    Samarth

5 Replies