Forum Discussion
Latest Date from Multiple Rows
- 5 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.
Hi StuartSmith ,
If you want to show the other rows which measure value is 0, just clear the visual filter.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
v-yingjl sorry, i mean aswell as seeing the "Max" date for each country by filtering "1", I also need to see rows with no date, so, maybe something like setting "Max" = 1, "Blank" ="2". Hope thats clearer.
- v-yingjl5 years agoCommunity Support
Hi StuartSmith ,
Try to modify the measure like this:
Control = VAR _max = CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( ALL ( 'Table' ), 'Table'[Country] IN DISTINCT ( 'Table'[Country] ) ) ) RETURN IF ( SELECTEDVALUE ( 'Table'[Date] ) = _max || SELECTEDVALUE('Table'[Date]) = BLANK(), 1, 0 )Basically if uses the previous measure, the blank date should also be displayed.
Check the below sample file.
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- StuartSmith5 years agoPower Participant
Thanks for your continued support (and patience). You additionaly solution worked, and now trying to get the filtered quantity value showing in a cardbut it shows the unfiltered quantity. I therefore, thought I would be able to apply your measure to the card filter, but it doesnt allow me to use the dropdown options.
- v-yingjl5 years agoCommunity Support
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.