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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors