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
CupidC
Helper II
Helper II

Show minimum value from the beginning

Hi 

I have a simple measure aimed at displaying the minimum value consistently, and I wrote the measure below, i am not sure why it doesn't work. please help 😞

Min Value =
CALCULATE([Total],FILTER(all('Table'),'Table'[Sort]=min('Table'[Sort])))
 
Result that i am getting(wrong)
CupidC_2-1682921517541.png

 


 

 The result that i would like to be:

CupidC_1-1682921494281.png

 

1 ACCEPTED SOLUTION

it is possible, but for this you need to create a dimension table, see file

https://1drv.ms/u/s!AiUZ0Ws7G26Rh2X45QCNGe1N2rDy?e=1dXrAg
Screen Capture #1009.pngScreen Capture #1010.pngScreen Capture #1011.pngScreen Capture #1012.pngScreen Capture #1013.png

View solution in original post

6 REPLIES 6
CupidC
Helper II
Helper II

Hi Ahmedx, thanks a lot!! it works perfectly!

Ahmedx
Super User
Super User

 

 

M1 = MINX(ALLSELECTE('Table'),[Total])
--------or -------

Measure = CALCULATE(MIN('Table'[ Total]),ALLSELECTE())

 

 

Hello Ahmedx,

 

Thank you once again for your help! The solution works perfectly.

 

I was curious if there are other ways to achieve the same result without using "Allselected". I came across a few articles online that suggested "Allselected" can be complex and may not always produce accurate results, so it's best to avoid it if possible.

 

Are there any alternative methods you would recommend?

 

Thanks

it is possible, but for this you need to create a dimension table, see file

https://1drv.ms/u/s!AiUZ0Ws7G26Rh2X45QCNGe1N2rDy?e=1dXrAg
Screen Capture #1009.pngScreen Capture #1010.pngScreen Capture #1011.pngScreen Capture #1012.pngScreen Capture #1013.png

Ahmedx
Super User
Super User

pls try this

 

 

M1 = MINX(all('Table'),[Total])

--------or -------

Measure = CALCULATE(MIN('Table'[ Total]),REMOVEFILTERS())

 

 

Hello Ahmedx,

 

Thank you so much for your help! It worked perfectly.

 

I was wondering if you could show me how to make it work with a slicer as well?

 

For instance, if the slicer starts from 2, I would like the minimum value to be 200.

If it starts from 3, the minimum value should start from 300 and so on.

 

thank you!!!

 

CupidC_1-1682926419303.png

 

 

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.

Top Solution Authors