Forum Discussion
DAX How To Dynamically Concatenate Earlier Row Values
- 7 years ago
Anonymous
I just normalized the ModelNumber into a dimension table that is why you see it as another table
Anonymous
Not sure if you are after something like this?
=
IF (
HASONEVALUE ( 'Models'[ModelNumber] ),
CONCATENATEX (
FILTER (
ALLSELECTED ( 'Models'[ModelNumber] ),
'Models'[ModelNumber] <= SELECTEDVALUE ( 'Models'[ModelNumber] )
),
CALCULATE ( SUM ( Data[Val1] ) ),
", "
)
)
- Anonymous7 years agoNot applicable
Thanks for the fast response. Your example is exactly what I am looking to do. My results outputs are not the same as yours. The only difference I see is all my data is coming from the same table, and you have the values coming from the data table as an example. What am I doing wrong?
See Concatenation is not working like yours
- LivioLanzo7 years agoSolution Sage
Anonymous
I just normalized the ModelNumber into a dimension table that is why you see it as another table
- Anonymous7 years agoNot applicable
Thanks For Your Help! Working with the Formula and dim table suggestion.