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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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