Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
nagaraj007
Post Patron
Post Patron

Get Data using Min number

Hello All,

 

I have struck with one problem wherein i would require the result based on 2 conditions, i.e it should search for the minimum number from Rank column and corresponding NAME column it should give the RESULT (TARGET as RESULT) only for the first found row and make the others as 0 . I have attached the screensnip for the reference. Please advice.

 

Need help.jpg

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@nagaraj007 ,

 

You can create an index column and then create a calculate column using dax below:

Result = 
VAR Min_Rank = CALCULATE(MIN('Table'[Rank]), ALLEXCEPT('Table', 'Table'[Name]))
VAR target = CALCULATE(MIN('Table'[Target]), FILTER('Table', 'Table'[Rank] = Min_Rank))
RETURN
IF('Table'[Target] = target && 'Table'[Index] = CALCULATE(MIN('Table'[Index]), ALLEXCEPT('Table', 'Table'[Name])), target, BLANK())

Capture.PNG 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@nagaraj007 ,

 

You can create an index column and then create a calculate column using dax below:

Result = 
VAR Min_Rank = CALCULATE(MIN('Table'[Rank]), ALLEXCEPT('Table', 'Table'[Name]))
VAR target = CALCULATE(MIN('Table'[Target]), FILTER('Table', 'Table'[Rank] = Min_Rank))
RETURN
IF('Table'[Target] = target && 'Table'[Index] = CALCULATE(MIN('Table'[Index]), ALLEXCEPT('Table', 'Table'[Name])), target, BLANK())

Capture.PNG 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (16,949)