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! Request now

Reply
Anonymous
Not applicable

Aggregation

is there a calculated formula to get minimum value of ON_HAND_QTY without using built-it options of aggregation.

 

Laedays_1-1634040382999.png

 

1 ACCEPTED SOLUTION

@Anonymous 

 

It works well with the previous code: 

Measure = min(Data[ONHAND_QTY])
 

VahidDM_0-1634076402429.png

 

Is there any difference between the file you shared and original file?

 

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

Appreciate your Kudos!!

 

View solution in original post

10 REPLIES 10
Fowmy
Super User
Super User

@Anonymous 

Create a Measure:

Min_OnHand_Qty = MIN ( TableName[OnHand_Qty])



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy weird it's not working

 

Laedays_1-1634043407233.png

 

@Anonymous 

Share some sample/dummy data and the expected results.


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy hi, created a sample pbix that you can use 

 

https://www.dropbox.com/s/2k5e9mbmzsh0cek/TEST.pbix?dl=0

 

my desired output is to create a calculated field for the actual MIN of OnHand without using built-in aggregated functions in PBI. it should show same value with the MIN (using built in function of aggregation)

VahidDM
Super User
Super User

Hi @Anonymous 

 

Try this:

measure = Min([ON_HAND_QTY])

 

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

Appreciate your Kudos!!

 

Anonymous
Not applicable

hello @VahidDM, not sure why it's not showing the correct value. value should be 35 and 13

 

Laedays_0-1634042167548.png

 

add table name to the measure: measure = Min(table[ON_HAND_QTY])

Can you share a sample of your data?

 

Appreciate your Kudos!!

 

Anonymous
Not applicable

@VahidDM here is the sample data in the link below:

 

https://www.dropbox.com/s/2k5e9mbmzsh0cek/TEST.pbix?dl=0

 

 

 

Anonymous
Not applicable

hi still the same

Laedays_0-1634043377530.png

 

@Anonymous 

 

It works well with the previous code: 

Measure = min(Data[ONHAND_QTY])
 

VahidDM_0-1634076402429.png

 

Is there any difference between the file you shared and original file?

 

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

Appreciate your Kudos!!

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors