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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
jimmymartin
Regular Visitor

Calculated Measure using result based on another column

Hi, I have a data set with list of sports teams and their actions during a game. I have a column for team and a column for their opposition and a calculated measure for number of tackles. Is there a calculated measure I can create that would show the opposition tackles for any given team instead of having to use them in seperate tables as seen below?

CleanShot 2022-07-21 at 11.03.35@2x.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @jimmymartin ,

According to your description, in my understanding, there're two tables in your sample,

Team table:

vkalyjmsft_1-1658830309159.png

Opposition table:

vkalyjmsft_2-1658830330403.png

Then create a measure to extrat the tackles of the opposition team, if this is the case, here's my solution, use the lookupvalue-function to create a measure.

Opposition Tackles =
LOOKUPVALUE (
    Opposition[Tackles],
    'Opposition'[Oppositon], MAX ( 'Team'[Team] )
)

Get the result.

vkalyjmsft_0-1658830040649.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @jimmymartin ,

According to your description, in my understanding, there're two tables in your sample,

Team table:

vkalyjmsft_1-1658830309159.png

Opposition table:

vkalyjmsft_2-1658830330403.png

Then create a measure to extrat the tackles of the opposition team, if this is the case, here's my solution, use the lookupvalue-function to create a measure.

Opposition Tackles =
LOOKUPVALUE (
    Opposition[Tackles],
    'Opposition'[Oppositon], MAX ( 'Team'[Team] )
)

Get the result.

vkalyjmsft_0-1658830040649.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@jimmymartin , the best is to create a common dimension

refer to my blog on the same topic https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.