Forum Discussion
coetseem
3 years agoFrequent Visitor
DAX or Add of Column
Good Day, I need some help with the below example. The bold colour is the raw data extracted from my system. Keep in mind that the data comes from two data sets where it is match so the created d...
- 3 years ago
coetseem , Try a new column like
if([Creation date] = maxx(filter(Table, [ID] = earlier([ID]) ), [creation Date]) , [Quote Value] , Blank())
for measure try like
Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
Anonymous
3 years agoNot applicable
Hi coetseem
Based on the amitchandak 's solution, you can also consider to create measures, they can dynamically changed.
e.g
QuoteValueFixed2 =
VAR a =
CALCULATE (
MAX ( 'Table'[Final Creation Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
RETURN
IF (
SELECTEDVALUE ( 'Table'[Final Creation Date] ) = a,
SUM ( 'Table'[QuoteValueFixed] )
)
QuoteValueRecurring3 =
VAR a =
CALCULATE (
MAX ( 'Table'[Final Creation Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
RETURN
IF (
SELECTEDVALUE ( 'Table'[Final Creation Date] ) = a,
SUM ( 'Table'[QuoteValueRecurring] )
)
Days =
VAR a =
CALCULATE (
MAX ( 'Table'[Final Creation Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
RETURN
IF (
SELECTEDVALUE ( 'Table'[Final Creation Date] ) = a,
DATEDIFF ( MAX ( 'Table'[Created] ), a, DAY )
)
Final Stage =
VAR a =
CALCULATE (
MAX ( 'Table'[Final Creation Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
RETURN
IF (
SELECTEDVALUE ( 'Table'[Final Creation Date] ) = a,
MAX ( 'Table'[Status] )
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.