Forum Discussion

jimpatel's avatar
jimpatel
Icon for Post Patron rankPost Patron
3 years ago
Solved

DAX formula

Hi

 

Thanks for looking at my post.

 

I am using below DAX code what should i do please to get information from same table and from same column please. That is i have attached an example "Modified status" which will look for material in the same column (it will be more than 2 in some cases) and if the match found then if "Status" is "Yes" for any of the matched part then "Modified status" will be yes for that part number please. 

 

Any idea pleasE? got stuck with this for ages : (

 

Column1 =
IF (
ISEMPTY (
FILTER (
'Table1',
'Table1'[Material]= 'Table2'[Material 2]
&& 'Table1'[status] = "Yes"
)
),
"NO",
"YES"
)
 

 

 
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi jimpatel , 

    I have created a simple sample, please refer to it to see if it helps you.

    Create a measure.

     

    _1=CALCULATE(MAX('Table'[status]),FILTER(ALL('Table'),'Table'[material]=SELECTEDVALUE('Table'[material])))
    

     

    If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information .

     

    Best Regards

    Community Support Team _ Polly

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi jimpatel , 

    I have created a simple sample, please refer to it to see if it helps you.

    Create a measure.

     

    _1=CALCULATE(MAX('Table'[status]),FILTER(ALL('Table'),'Table'[material]=SELECTEDVALUE('Table'[material])))
    

     

    If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information .

     

    Best Regards

    Community Support Team _ Polly

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • jimpatel's avatar
      jimpatel
      Icon for Post Patron rankPost Patron

      This is what exatly i am looking for.

       

      Thanks a lot for your time and input 

       

      Jim