Forum Discussion

xierwee's avatar
xierwee
Icon for Helper I rankHelper I
7 years ago
Solved

using result from another measure

Hi experts,

 

I have the following result (Table1) from a measure (

DIVIDE(sum('Performance'[weights]), CALCULATE(sum('Performance'[weights]), ALLSELECTED('Performance'[fund])))* sum(Performance[return])

). 

 

Now I'd like to just sum up the norm_return for each date of two funds. just tried sum or sumx, not working as expected. 

 

table1

datefundnorm_return
3/31/2010systematica0.00002
3/31/2010winton0.0155
2/28/2010systematica0.0005
2/28/2010winton-0.0045
1/31/2010systematica-0.011502
1/31/2010winton0.0374
12/31/2009systematica0.016721
12/31/2009winton0
11/30/2009systematica-0.029598
11/30/2009winton0.004
10/31/2009systematica-0.0650995
10/31/2009winton-0.004
  • You can call a measure within another measure... 

5 Replies

    • xierwee's avatar
      xierwee
      Icon for Helper I rankHelper I

      hmm, I need to use the result in another measure, and then plot the result, so I'm afraid matrix wouldn't help.

  • tex628's avatar
    tex628
    Icon for Community Champion rankCommunity Champion
    Measure = Calculate(norm_return; Allexcept(calendar[Date])

    Try this ! :-)

    • xierwee's avatar
      xierwee
      Icon for Helper I rankHelper I

      not really, because norm_return is a measure, not a table or column. :smileyembarrassed:


      tex628 wrote:
      Measure = Calculate(norm_return; Allexcept(calendar[Date])

      Try this ! :-)


       

      • tex628's avatar
        tex628
        Icon for Community Champion rankCommunity Champion

        You can call a measure within another measure...