cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Aimeeclaird
Helper IV
Helper IV

Clustered Chart - Count Column, and % complete of each value counted

Hi, apologies if this has been answered in another thread, perhaps I am not phrasing my question correctly.

 

I have data that looks like this (each row is a 'job'):

 

RegionStatusStatus Key
West MidlandsComplete1
West MidlandsComplete1
West MidlandsNot Complete0
East MidlandsComplete1
East MidlandsComplete1
East MidlandsComplete1
North EastNot Complete0
North EastNot Complete0
North EastComplete1

 

On a clustered chart, I want to show the Region on the Axis, and the Status as the legend. 

 

For each region, I want to know the total no. of Jobs in that region, and then beside it the % complete.

 

Can anyone help please?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Aimeeclaird ,

Based on your description, you can create these two measures:

Total = COUNTROWS('Table')
Percentage =
VAR _complete =
    CALCULATE ( COUNT ( 'Table'[Region] ), 'Table'[Status] = "Complete" )
RETURN
    _complete / [Total]

 chart.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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-yingjl
Community Support
Community Support

Hi @Aimeeclaird ,

Based on your description, you can create these two measures:

Total = COUNTROWS('Table')
Percentage =
VAR _complete =
    CALCULATE ( COUNT ( 'Table'[Region] ), 'Table'[Status] = "Complete" )
RETURN
    _complete / [Total]

 chart.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors