Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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?
Solved! Go to Solution.
Hi @jimmymartin ,
According to your description, in my understanding, there're two tables in your sample,
Team table:
Opposition table:
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.
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.
Hi @jimmymartin ,
According to your description, in my understanding, there're two tables in your sample,
Team table:
Opposition table:
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.
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.
@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...
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 33 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 29 | |
| 25 |