Forum Discussion
StuartSmith
Power Participant
6 years agoLatest Date from Multiple Rows
I have a table visual similar to the below and need to filter the table, so it only shows the latest for each coumtry. Unfiltered Table Country Date Qty UK 01/09/2020 10 UK 01/10...
- 6 years ago
Hi StuartSmith ,
To make the card visual show the same total in the table visual, you can create another measure to calculate it and put it in the card visual:
Sum of Qty = CALCULATE ( SUM ( 'Table'[Qty] ), FILTER ( ALL ( 'Table' ), [Control] = 1 ) )Check the modified sample file in the below, hopes to help you.
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
6 years agoStuartSmith , USe these two measures for date and qty
lastnonblank(Table[Date],blank())
lastnonblankvalue(Table[Date],sum(Table[Qty]))
Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.