Looking for some assistance in POWER BI DAX - I have a DAX created table that takes a Name and transposes various outcomes with their likelihood into the following format:
Currently, I have a measure in order to identify the top 3 varying outputs which takes form like:
Most Likely =
LOOKUPVALUE(
'Test'[Result],
'Test'[Expected Percentage],
MINX(
TOPN(
1,
'Test',
'Test'[Expected Percentage],
desc),
'Test'[Expected Percentage])
)
I use this for display in my dashboard to show the most likely Result based on the top percentage expected output.
However, now I want to transpose this data into the following static table format:
The problem I am having is the DAX table add statement is not splitting by the Name so therefore I am retrieving the top Expected percentage for the whole table and it is not splitting per name - this is currently what I am working with:
Outcomes Summary = (
SELECTCOLUMNS('Test', "Most Likely",
LOOKUPVALUE(
'Test'[Result],
'Test'[Expected Percentage],
MINX(
TOPN(
1,
'Test',
'Test'[Expected Percentage]&'Score Outcomes'[Name],
desc),
'Score Outcomes'[Expected Percentage])
), "Name", 'Test'[Name], "Result", 'Test'[Expected Percentage]
)
)
Any assistance would be greatly appreciated!