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 for...
  • Samarth_18's avatar
    4 years ago

    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