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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
dkernen2
Helper II
Helper II

Needing a DAX Measure for the Minimum Value of All the Category Totals

I need to create a measure that shows the the value of the smallest category total.  I have included a small dataset, but here is a text version of what I need:

 

DepartmentPaid $ (Measure that sums the paid amounts)
Blue-25
Green40
Purple24
Red74

 

I need a measure that shows the minimum departmental [Paid $], in this case -25.  I need the measure to use any other filters already on the report.  I'm stumped.  

 

Thank you in advance!

https://kauffman.box.com/s/3nd49adb9zoivf1gecr7w0e1kiuz1zs6

@MIN

 

1 ACCEPTED SOLUTION
vinodDrinkPak
Helper II
Helper II

Minimum Paid $ =
MINX(
ALL('YourTableName'[Department]),
[Paid $]
)

View solution in original post

8 REPLIES 8
vinodDrinkPak
Helper II
Helper II

Minimum Paid $ =
MINX(
ALL('YourTableName'[Department]),
[Paid $]
)

This looks like exactly what I need!  Thank you!

@dkernen2 

 

thank you, please accept this as solution, so that others can also take the benefit

eliasayyy
Super User
Super User

annonymous1999_0-1694180722502.png


if you have filters you need to keep just swap all with allexcept and fill the slicers you need 

 

Min = CALCULATE(MIN('Table'[Paid]),ALL('Table'))

OR

min = MINX(ALL('Table'),'Table'[Paid])

 

 

@eliasayyy Thank you for your swift reply.  This is finding the minimum value of the column, not the minimum value of the measure.  How can I find the minimum measure total?

eliasayyy
Super User
Super User

hello what filters do you have on ? 


@eliasayyy I could have other filters on such as Person or Region, as an example.  I just want the measure to respect other filters if they are present.  I need it to calculate the [Paid $] measure first by department, and then return to me the smallest category aggregation [Paid $].

then use 

min = CALCULATE(MIN('Table'[Paid]), ALLEXCEPT('Table',[Region],[person]))

OR

min = MINX(ALLEXCEPT('Table',[Region],[person]),'Table'[Paid])

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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