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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors