Forum Discussion

mohanpal's avatar
mohanpal
Frequent Visitor
4 years ago
Solved

Calculation based on Date selection

Hi,  I need to replicate COL B in PowerBI, it should dynamically change the value based on date selection.   For example: if I select date 02/01/2021, it should change to that date and make defaul...
  • v-zhangti's avatar
    4 years ago

    Hi, mohanpal 

     

    You can try the following methods.

    Measure:

    COL B =
    IFERROR (
        100 * SELECTEDVALUE ( 'Table'[Date] )
            / CALCULATE ( MIN ( 'Table'[Date] ), ALL ( 'Table' ) ),
        BLANK ()
    )
    

     

    You can select output values by date. Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.