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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors