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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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