Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Include zero/blanks in column chart (frequency table)

I have a table with number of emails sent per case

 

Data sample

Case idNumber of sent emails
111113
22222null
333332
444441
555551

 

Result:

Problem

As you can see am I missing a column for 0 E-mails sent (the column should be high with +50k in frequency). I have tried to replace the null data with zeroes without improvment. I can also not find any option "include blank data". How should i proceed?

  • Anonymous's avatar
    Anonymous
    6 years ago

    I actually got I to work in my dummy-file and I then comparied the settings between those two. Apparently, the right solution is to have the following settings...

    Axis: number_of_emails, with "Show items with no data"

    Value: number_of_emails, with "Count"

    Default Summarization: on "Don't summarize" (number_of_emails)

    Data settings: Relplaced nulls with zeroes

     

    What I missed was that when I change "default summarization", for some reson, count switched over to sum. And the sum of a lot of zeroes is zero, so thats why no data was showing.

     

    Thank you a lot for your help Tahreem24 

     

     

7 Replies

  • Anonymous ,

     

    RIght click on your axis in Field option under Visualization pane --> Select "Show item with no data". (Attched screen shot)

    Don't forget to hit Thumbs up and accept this as a solution if you find it helpful! 

    • Anonymous's avatar
      Anonymous
      Not applicable

      It has a green check mark but the 0-bar is till empty.

       

       

      • Tahreem24's avatar
        Tahreem24
        Super User

        Anonymous ,

         

        You should be able to just add 0 to the measure this will return the sum of frequency (if there are some observations else it will return 0).

        Sum of Frequency = Sum( 'fTable'[Frequency COlumn]) + 0

         Add this measure in your chart.

         

        Don't forget to hit Thumbs up and accept this as a solution if you find it helpful!