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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Learnpbifab
New Member

Dax to exclude min value from power bi report

Hi all,

 

I have one report where I am showing value as processnum and processname.and i am trying to check all processnum under name excluding min value.

Dax:

Min=

Var a=min(table(processnum)

Return processnum > a

 

I am getting error when tried for above. Can anyone suggest

8 REPLIES 8
v-kpoloju-msft
Community Support
Community Support

Hi @Learnpbifab,

May i know has your issue been resolved? If the response provided by the @Jihwan_Kim@Hakuna_matata@techies addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

 

If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.

Thank you for your understanding!

Hi @Learnpbifab,


I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

Hi @Learnpbifab,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

Anonymous
Not applicable

HI @Learnpbifab,

Any update on this? Did these suggestion helps?

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @Learnpbifab ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

techies
Solution Sage
Solution Sage

Hi @Learnpbifab please try this

 

ExcludeMinProcessNum =
VAR MinValue = CALCULATE(
    MIN('Sheet6'[processnum]),
    ALLEXCEPT('Sheet6', 'Sheet6'[processname])
)
RETURN
IF(SELECTEDVALUE('Sheet6'[processnum]) > MinValue, SELECTEDVALUE('Sheet6'[processnum]), BLANK() )
― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978
Hakuna_matata
Resolver I
Resolver I

Hi @Learnpbifab ,

The way you have applied Min will return the minimum processnum for the entire table, not for each specific processname.
Try the below measure:


Min_Excluded =
VAR MinValue = CALCULATE(MIN(Table[processnum]), ALLEXCEPT(Table, Table[processname]))
RETURN IF(Table[processnum] > MinValue, Table[processnum], BLANK())


Hope it helps!
If this solved your problem, please accept it as a solution!!

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1742029073612.png

 

expected result measure: = 
VAR _processnumber =
    SUM ( data[process_number] )
VAR _min =
    MINX ( ALL ( data ), data[process_number] )
RETURN
    IF (
        _processnumber > _min
            && HASONEVALUE ( data[process_name] ),
        _processnumber
    )

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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