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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Fidzi8
Helper V
Helper V

MIN Value

Hi,

I  need min value 115.

 

When I filter month June, I see min value 121 - besause Haulier had this month 121. 

I need always the same min value of LOG_CODE.
1.png

inter.png

 

Thank you 
Ondřej

6 REPLIES 6
amitchandak
Super User
Super User

@Fidzi8 , you need [CostP] the Min or You can use a formula in place of that

 

Without considering filter

minx(filter(all(Table),Table[log_code] ="T00265401970"), [CostP])
calculate([CostP], filter(all(Table),Table[log_code] ="T00265401970"))

 

filter are considered

minx(filter(allselected(Table),Table[log_code] ="T00265401970"), [CostP])
calculate([CostP], filter(allselected(Table),Table[log_code] ="T00265401970"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak
I couldn´t use second part your formula 😕

 

I adjusted your formula but does not work 😕
cost+.png

Thank you
Ondřej

@Fidzi8 , formatted

 minx( filter(all(Table)
                       ,Table[log_code] ="T00265401970"
                       )
       , [CostP])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak ,
I can´t use "T00265401970" because I have a lot of unique codes
kod.png

I don´t know how use all DATE in this formula

Thank you
Ondřej

@Fidzi8 Is that a timestamp of some sort? Any idea what it represents/what system. Is it unix time? I have a converter for that if so. https://community.powerbi.com/t5/Quick-Measures-Gallery/Unix2UTC-and-UTC2Unix/m-p/620012#M292 Otherwise would need to know reference date.

 

Otherwise, I'm not sure I fully understand your data or what you are trying to accomplish. Please post sample data and expected output. Thanks.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Fidzi8 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors