Forum Discussion
Table shows no data with 0
- 8 years ago
Anonymous,
You may refer to the following DAX that creates a new table.
Table = SUMMARIZECOLUMNS ( Table1[Agent Name], "Count", CALCULATE ( DISTINCTCOUNT ( Table2[Active Devices] ), FILTER ( Table2, Table2[Agent Name] = MAX ( Table1[Agent Name] ) ) ) + 0 )
Can you be my guidance for this?
I've just seen this as a work around for a few things where a visual shows as blank - I assume you've got your agents in some sort of related table to the data you displayed, if you look up how the countrows function works and run that across your data that should be a starting point
- vanessafvg8 years ago
Community Champion
measure = if(isblank(measure, 0, sum(measure))
or + 0 on the end
- Anonymous8 years agoNot applicable
Maybe I wasn't cleared enough in my posts sorry about that.
I've got 2 data sources, the first contains all the employees and their team. The second one contains all the number of active devices on their name.
I've created an 'inner join' from those 2 tables (Active devices on employees).
This results in an table where only the employees with one or more active devices on their name are show.
Due to this the agents aren't shown in the table that I use in my report.
Is there a possibility that all agents that are in the data source (employees and their team) are shown in any way together with the sum(distinct) off the active devices on their name. And for the employess without any devices on their name an 0 is shown?
Thanks!
- v-chuncz-msft8 years ago
Community Support
Anonymous,
You may refer to the following DAX that creates a new table.
Table = SUMMARIZECOLUMNS ( Table1[Agent Name], "Count", CALCULATE ( DISTINCTCOUNT ( Table2[Active Devices] ), FILTER ( Table2, Table2[Agent Name] = MAX ( Table1[Agent Name] ) ) ) + 0 )