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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calculated column on matching data

Hi,

 

I have to achieve below output in power BI,

 

Where i have the data like below screen shot in same table,

 

Column1      Column2           Measure

----------      -----------         -----------

ABC                 XYZ                    59

EFG                 ABC                   10

 

and my requirement is to create new column or measure which gives measure value of column2, where it's matches the data with column1

 

required output is 

 

Column1      Measure        New Measure/Column

-----------    -----------      ---------------------------

ABC                 59                    10

EFG                 10                     -

 

Please suggest 

 

Thanks,

Ganesh

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous

 

Try this calculated column.

Calculated = CALCULATE(MAX(Ex_earlier[Measure]),FILTER(Ex_earlier, Ex_earlier[Column2]=EARLIER(Ex_earlier[Column1])))

 

Ex_Earlier.PNG

 

Thanks

Raj

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous

 

Try this calculated column.

Calculated = CALCULATE(MAX(Ex_earlier[Measure]),FILTER(Ex_earlier, Ex_earlier[Column2]=EARLIER(Ex_earlier[Column1])))

 

Ex_Earlier.PNG

 

Thanks

Raj

Anonymous
Not applicable

Thanks Raj for looking into this.

 

In my real time scenarion, if i am taking aggragtion as SUM, It's working perfectly.

 

Best Regards,

Ganesh

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors