The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I am having below data in my table
Name | Category | Supply | Value |
A | AH | BG | 200 |
A | SH | FJ | 300 |
A | AJ | DK | 1000 |
B | DH | SJ | 5000 |
B | FKG | DK | 20 |
B | SH | WL | 12 |
I need to take out the maximum value from the above table and expecting below output
My expected output
Name | Category | Supply | Value |
A | AJ | DK | 1000 |
B | DH | SJ | 5000 |
Can anyone advise how to do this?
Solved! Go to Solution.
Hi,
Please use this DAX
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series
Thanks for marking the answer :), have a good day!
Regards,
Ritesh
Hi,
These measures work
Max value = MAX(Data[Value])
Category at maximum value = CALCULATE(MIN(Data[Category]),FILTER(VALUES(Data[Value]),Data[Value]=max(Data[Value])))
Supply at maximum value = CALCULATE(MIN(Data[Supply]),FILTER(VALUES(Data[Value]),Data[Value]=MAX(Data[Value])))
Hi,
Please use this DAX
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
203 | |
82 | |
65 | |
48 | |
38 |