Forum Discussion

mrothschild's avatar
mrothschild
Icon for Continued Contributor rankContinued Contributor
5 years ago
Solved

Retrieving first column of data from a Matrix

Hi,

I'm trying to get a difference of Years in a dynamic Matrix.

 

The output in the screenshot below comes from the following formula, and is not the intended result.

 

   CALCULATE(
    MINX(GROUPBY('Helivalues Transaction History','Helivalues Transaction History'[Sale Year]),'Helivalues Transaction History'[Sale Year]),
        FILTER(
            'Helivalues Transaction History',
            'Helivalues Transaction History'[Sale Year] = 
                MINX(GROUPBY('Helivalues Transaction History','Helivalues Transaction History'[Sale Year]),'Helivalues Transaction History'[Sale Year])
        )
    )

 

 

From the above, I'd want the values in the matrix, going from left to right to be:

 

0, 1, 2, 3, 4, 5, 7. . . . (note that the 6 is missing because the year 2014 has no data in it)

 

but in order to do that, I need to return, in this example "2008" to subtract.  But the above formula was intended to put 2008 in every cell, rather than the corresponding Column header.

 

Thanks in advance for any help!

 

 

 

 

6 Replies