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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NickProp28
Post Partisan
Post Partisan

MINX return different result

Dear Community,

 

This is my 3 month sales data. 

NickProp28_2-1640604009967.png

And I would like to create another card to show the lowest value. Which is month March with value '2400'. 

I have apply MINX function, 

$ Min Month Sales = MINX( ALLSELECTED( 'Calendar' ), [$ Sales] )

But its not return the expected value. 

NickProp28_3-1640604089746.png

Appreciate any help provided! 

Here is the pbix: https://drive.google.com/file/d/1QikkvU7dhNQ2jgnMsEstTzLwpJzRI17a/view?usp=sharing

 

Thank you! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NickProp28 , Based on what I got, Try like

 

$ Min Month Sales = MINX( values( 'Calendar'[Month] ), [$ Sales] )

, assuming $sales is a measure else use

calculate(sum(Table[$ Sales] )) 

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

View solution in original post

4 REPLIES 4
ALLUREAN
Solution Sage
Solution Sage

Hi @NickProp28 

 

Can you try this? It will take the min value and will keep it also when you select month from the slicer. 

$ Min Month Sales = CALCULATE(MINX(VALUES('Calendar'[Month]),[$ Sales]),ALL('Calendar'))
 

https://www.dropbox.com/s/yuqq95ggx9c5ims/MINX%20issues%20%28allure-analytics.com%29.pbix?dl=0

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Kumail
Post Prodigy
Post Prodigy

Hello @NickProp28 

 

You could try $ Min Month Sales =

MINX( ALLSELECTED( 'Calendar'[Month] ), [$ Sales] )

 

This will give you the correct min monthly value.

 

Regards

Kumail Raza

Jihwan_Kim
Super User
Super User

Hi,

If your expected result is 2400, please try the below measure.

 

$ Min Month Sales =
MINX( ALLSELECTED( 'Calendar'[Month] ), [$ Sales] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@NickProp28 , Based on what I got, Try like

 

$ Min Month Sales = MINX( values( 'Calendar'[Month] ), [$ Sales] )

, assuming $sales is a measure else use

calculate(sum(Table[$ Sales] )) 

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