Forum Discussion
Dax Measure to return a single value from a column when using Min function on a different column
- 5 years ago
JamesCarter try this meaure
Top Ref = CALCULATE ( MIN ( Ref[Ref] ), TOPN ( 1, ALLSELECTED ( Ref ), Ref[Start Date], ASC ) )Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- 5 years ago
Hi,
Try these measures
First date = MIN(Data[Start Date])Measure = FIRSTNONBLANK ( TOPN ( 1, VALUES (Data[Ref]), [First date],ASC ), 1 )Drag the second measure to a card visual. The result will be 123456.
JamesCarter try this meaure
Top Ref = CALCULATE ( MIN ( Ref[Ref] ), TOPN ( 1, ALLSELECTED ( Ref ), Ref[Start Date], ASC ) )
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Hi parry2k
Thanks so much for responding and for your proposal.
I couldn't quite get it to work (it wouldn't let me call the start date). Sure it's something I did wrong in translating the measure to my actual table.
Happily Ashish_Mathur 's solution worked, but I'm really grateful for your time and offer of help.
I do love the support people offer on these forums.
Thanks again
James