Forum Discussion

bbulla's avatar
bbulla
Frequent Visitor
3 years ago

How to chart Inspection Data with multiple columns

Hi,

 

I'm trying to create some sort of chart (clustered column chart??) to display the count of defects found during insepctions.  The data looks like this.  Each record is from an inspection of a watermain valve, and each valve could have one or many defects associated to it:

 

 

Each 'defect' is identified through a "True" value.  There are about a dozen or so possible defects.  I've created a clustered column chart before, but only using one field where there were multiple values.  I guess I'm getting confused on what to do with multiple fields and how to correctly count the 'True' values.

 

Thanks for any assistance.

 

2 Replies

  • v-yadongf-msft's avatar
    v-yadongf-msft
    Community Support

    Hi bbulla ,

     

    In order to better understanding your demands and give the right solution, could you please tell me what's your expected output?

     

    Thanks for your efforts & time in advance.

     

    Best regards,

    Yadong Fang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • bbulla's avatar
      bbulla
      Frequent Visitor

      Hi Yadong,

       

      Well I have sort of come up with something.  For each defect I am creating a measure that counts the total number of "True" values for that defect.  So basically I do this for each defect:

       

      Valve Spins = CALCULATE(COUNTROWS('Inoperable Valves'),FILTER('Inoperable Valves', 'Inoperable Valves'[VALVE_SPINS]="True")) + 0
       
      So that gives me just a number that I can plot using a graph, but the one problem I am now finding is that when I use the Clustered Chart visual they all show up bunched together.  There is no separation, since the chart is vieweing them all as one category.  
       
      Is there a way to fix this?  This is what I am getting.  I'd prefer to have my charts on the right look more like the one on the left....with some space between everything.