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
thehowlerr
New Member

clustered bar chart - multiple columns from two sources

I have a bar chart that shows the number of items of a particular status by Design team (see chart below).   I would like to had columns by Design team that counts items by of a particular type as well.    For each team, it would show a column for each of the following:

 

  • Open
  • Closed
  • Ready to Inspect
  • Work Completed
  • Non-Conforming
  • RFI

 

Is there a way to do this?

 

table.JPGGraph.JPG

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @thehowlerr,

 

You could create a new table, which will summarize the table by "type" and "status". Then you can create visuals with the new table. Any new data added into the old table will be updated in the new table automatically. Please have a try.

 

ResultTable =
UNION (
    SUMMARIZE (
        'DataTable',
        'DataTable'[Status],
        'DataTable'[Design Team Report],
        "value", COUNT ( 'DataTable'[Status] )
    ),
    SUMMARIZE (
        'DataTable',
        'DataTable'[Type],
        'DataTable'[Design Team Report],
        "value", COUNT ( 'DataTable'[Type] )
    )
)

clustered bar chart - multiple columns from two sources.jpg

 

 

 

 

 

 

 

 

 

 

 

 

I paste your data in text mode in case somebody wants to have a try.

Type	Status	Design Team Report
NC	Open	C7A
NC	Closed	N/A
NC	Closed	PP
RFI	Closed	WS
NC	Ready to Inspect	PP
NC	Open	PP
NC	Ready to Inspect	PP
NC	Open	PP
NC	Closed	PP
RFI	Closed	SGH
NC	Ready to Inspect	PP
NC	Ready to Inspect	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	WS
NC	Closed	WS
NC	Closed	WS

Best Regards!

Dale

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

View solution in original post

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @thehowlerr,

 

You could create a new table, which will summarize the table by "type" and "status". Then you can create visuals with the new table. Any new data added into the old table will be updated in the new table automatically. Please have a try.

 

ResultTable =
UNION (
    SUMMARIZE (
        'DataTable',
        'DataTable'[Status],
        'DataTable'[Design Team Report],
        "value", COUNT ( 'DataTable'[Status] )
    ),
    SUMMARIZE (
        'DataTable',
        'DataTable'[Type],
        'DataTable'[Design Team Report],
        "value", COUNT ( 'DataTable'[Type] )
    )
)

clustered bar chart - multiple columns from two sources.jpg

 

 

 

 

 

 

 

 

 

 

 

 

I paste your data in text mode in case somebody wants to have a try.

Type	Status	Design Team Report
NC	Open	C7A
NC	Closed	N/A
NC	Closed	PP
RFI	Closed	WS
NC	Ready to Inspect	PP
NC	Open	PP
NC	Ready to Inspect	PP
NC	Open	PP
NC	Closed	PP
RFI	Closed	SGH
NC	Ready to Inspect	PP
NC	Ready to Inspect	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	SGH
NC	Closed	WS
NC	Closed	WS
NC	Closed	WS

Best Regards!

Dale

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

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.