Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

DAX Calculated column

Hi, I am trying to re-create the below measure as a Calculated column:

 

Measure: 

MF Growth Measure =
CALCULATE(
PRODUCTX('6 MF Avg', 1 + ('6 MF Avg'[MF Avg]/100)),
FILTER(ALLSELECTED('DateTable'[Date]), ISONORAFTER('DateTable'[Date], MAX('DateTable'[Date]), DESC)
)) * 1000
 
I am not able to get this working as a calculated column. Appreceate any help!
 
Thanks,
SV

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Anonymous Sorry, having trouble following, can you post sample data as text and expected output? If you need this to be interactive based upon date selection then a calculated column will not work.


    Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

    Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Community Support

    Hi Anonymous ,

     

    You can use the following calculated column:

     

     

    MF Growth Measure = 
    CALCULATE (
        PRODUCTX ( '6 MF Avg', 1 + ( '6 MF Avg'[MF Avg] / 100 ) ),
        FILTER ( 'DateTable', 'DateTable'[Date] <= RELATED( 'DateTable'[Date] ) )
    ) * 1000

     

    If this post help, please consider accept it as the solution to help other member find it more quickly.

     

    Best Regards,

    Dedmon Dai