Forum Discussion
naizam
Helper II
5 years agoDisplay default values in Table visual
Hello experts, Looking for a solution/work around to a problem that i ran into. I have a dashboard with 4 tiles (table visual displayed to look like a card) on top row. These tiles display the co...
v-alq-msft
Community Support
5 years agoHi, naizam
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create measures as below.
Top Active =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALLSELECTED('Table'),
[Status]="Active"
)
),0
)Top Retired =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALLSELECTED('Table'),
[Status]="Retired"
)
),0
)Top On Hold =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALLSELECTED('Table'),
[Status]="On Hold"
)
),0
)Top Migrated to AWS =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALLSELECTED('Table'),
[Status]="Migrated to AWS"
)
),0
)Bottom Active =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALL('Table'),
[Status]="Active"
)
),0
)Bottom Retired =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALL('Table'),
[Status]="Retired"
)
),0
)Bottom On Hold =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALL('Table'),
[Status]="On Hold"
)
),0
)Bottom Migrated to AWs =
COALESCE(
CALCULATE(
DISTINCTCOUNT('Table'[ID]),
FILTER(
ALL('Table'),
[Status]="Migrated to AWS"
)
),0
)
Result:
If I misunderstand your thoughts, please show us some sample data and the expected result. Thanks.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.