Forum Discussion
Power bi Matrix column value Based on count
- Anonymous3 years ago
You will have to create a new table with the groups you want as there are no references in the table for Power BI to add a 0 agains it.
You can then create a relationship between the two tables like this
The next step is to create a measure that will replace the blanks with 0.
Measure = VAR total_rows = COUNTROWS('Group_data') Return COALESCE(total_rows, 0)I have called my table 'Group_data'. You will need to replace the bit in green with the name of your table.
You will then need to use this measure along with the column in the new table you have created in a matix
In the visualisation pane click on the drop down
then make sure 'Show items with no data' is selected.
Not exactly working can we provide an example for better understanding. Thank you
- Anonymous3 years agoNot applicable
You will have to create a new table with the groups you want as there are no references in the table for Power BI to add a 0 agains it.
You can then create a relationship between the two tables like this
The next step is to create a measure that will replace the blanks with 0.
Measure = VAR total_rows = COUNTROWS('Group_data') Return COALESCE(total_rows, 0)I have called my table 'Group_data'. You will need to replace the bit in green with the name of your table.
You will then need to use this measure along with the column in the new table you have created in a matix
- BIswajit_Das3 years agoImpactful Individual
Thanks the visual explanation is really helpfull