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

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors