Forum Discussion
Kavya123
4 years agoHelper III
Show zero values in bar chart
Hi All, I want to show zero values in bar chart. Please find the sample data and the screenshot. Answer text field is dimension and sector field is filter in the report.. Below is the measure I...
- 4 years ago
Hi Kavya123 ,
Create a sector table, then create a relationship with the fact table and use it as axis.
Table 2 = DISTINCT('Table'[Sector])Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
V-lianl-msft
4 years agoCommunity Support
Hi Kavya123 ,
Create a sector table, then create a relationship with the fact table and use it as axis.
Table 2 = DISTINCT('Table'[Sector])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AllardBon
2 years agoAdvocate I
Hi Kavia,
There is a simpeler solution to your problem.
When you create a measure for the number of students, for instance:
NumberOfStudents = COUNT(SP_DASHBOARD[STUDENTNUMBER])
, the 0-values are not shown in the charts.
When you create the measure like this:
NumberOfStudents = IF(COUNT(SP_DASHBOARD[STUDENTNUMBER])=0, 0, COUNT(SP_DASHBOARD[STUDENTNUMBER]))
, the 0-values are shown in the charts.