Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bbulla
Frequent Visitor

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:

 

bbulla_0-1671111864682.png

 

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 2
v-yadongf-msft
Community Support
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.

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.
 
bbulla_0-1671196685634.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.