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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Fidzi8
Helper IV
Helper IV

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"))

@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])

@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.


@ 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!:
The Definitive Guide to Power Query (M)

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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