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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply

filtering data from same table with different column

ProjTransRefTransOrigTransAMOUNT
208428  6
295865208428 -6
2958662084282084286
295869  8

 

Any body help me to transform the data below.

 

ProjTransAmountRefTransProjTransAmountOrigTransProjTransAmount
2084286YES295865-6YES2958666
2958698No  No  
        
  if(ProjTrans in RefTrans) then YES else Noif(ProjTrans = RefTrans && OrigTrans ="Null") then ProjTransif(ProjTrans = RefTrans && OrigTrans ="Null") then Amountif(ProjTrans =  OrigTrans ) then "YES" Else Noif(ProjTrans =  OrigTrans ) then ProjTransif(ProjTrans =  OrigTrans ) then Amount
2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @sohailstsindia ,

 

Actually I cannot understand your logic here totally. Coul you please share more details about that?

 

Here I create two calculated columns to work part of that.

 

RefTrans1 = IF(Table1[ProjTrans] in VALUES(Table1[RefTrans]),"Yes","No")
origtrans1 = IF(Table1[ProjTrans] in VALUES(Table1[OrigTrans]),"Yes","No")

Capture.PNG

 

Also please find the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

hi @Frank,

 

Thank your your effort,

I need ProjTrans, AMount then

if ProjTrans no is in RefTrans and OrigTrans is Null then "YES" else "No" and Amount.

and if ProjTrans is in OrigTrans then "YES" else "No" and Amount.

 

All in one Row.

 

regards,

Sohail

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.