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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Talal141218
Helper III
Helper III

Minx

Hi there, 

 

i am neu with Power BI and i want to apply Minx to find the minimum value for net sales except(0 or blank). 

anyone can help me in this? 

thanks in advance. 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your dataset looks like, but please check the attached file.

I hope the below attached file can provide some ideas on how to create a solution for your dataset.

 

Min sales measure: =
MINX (
    FILTER ( Sales, Sales[Sales] <> 0 && Sales[Sales] <> BLANK () ),
    [Sales total measure:]
)

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.

View solution in original post

7 REPLIES 7
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your dataset looks like, but please check the attached file.

I hope the below attached file can provide some ideas on how to create a solution for your dataset.

 

Min sales measure: =
MINX (
    FILTER ( Sales, Sales[Sales] <> 0 && Sales[Sales] <> BLANK () ),
    [Sales total measure:]
)

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.

 

sorry sir just one question. If i want add minus values to the filter. values >0 

what should i do ? 

 

Hi,

Thank you for your feedback, and please try something like below.

 

Min sales measure: =
MINX (
    FILTER ( Sales, Sales[Sales] > 0 && Sales[Sales] <> BLANK () ),
    [Sales total measure:]
)

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.

thanks for your effort, but unforetunately did not work . 

Hi,

Please share your sample pbix file's link here, and then I can try to look into it to come up with a more accurate solution.

Thanks.


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.

thank's i found a solution 2022-08-24 16_50_16-Probe Vertrieb Dashboard neu - Power BI Desktop.png

Thank's alot

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.