To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a reference table that lists team names and locations and another table that lists the amount for each team. There may be teams that are missing in the reference table. For these, I want to show them as "Not Defined" in the matrix table. How can I do that? Right now they are grouped in without any name. Please see the screenshot below. Team C is missing in the reference table. So I want to show the aggregate of missing teams as 'Not defined' in the matrix table instead of Blank under the Team column.
Solved! Go to Solution.
One way to do it is to make another table with a DAX expression like the one shown below. You can then relate that new table to your Amounts table on the Team column to get your desired table visual.
NewTable =
ADDCOLUMNS (
DISTINCT ( Amounts[Team] ),
"InTeamsTable",
IF (
ISBLANK (
CALCULATE ( MIN ( Teams[Team] ), TREATAS ( { Amounts[Team] }, Teams[Team] ) )
),
"Not Defined",
Amounts[Team]
)
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
One way to do it is to make another table with a DAX expression like the one shown below. You can then relate that new table to your Amounts table on the Team column to get your desired table visual.
NewTable =
ADDCOLUMNS (
DISTINCT ( Amounts[Team] ),
"InTeamsTable",
IF (
ISBLANK (
CALCULATE ( MIN ( Teams[Team] ), TREATAS ( { Amounts[Team] }, Teams[Team] ) )
),
"Not Defined",
Amounts[Team]
)
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.