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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Percentage Graph

I've Managed to get a absolute count column chart in my report using Visual Level Filtering ChartChartVisual FiltersVisual Filters

 

How would i turn this into a Percentage Chart (i.e. Percentage values up to  to 100% the X-Axis.)

 

I'm thinking along the lines of a Measure which does a COUNTA of Incident ID divide by COUNTA of Breach where value is equal to OK. leaving the rest to visual level filters like i have done with the above graph.

 

Its worth mentioning the fields are text based not numerical hence the use of CountA. (is this correct???)

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous,

 

Yes, if the column contains text, logic values, you would better use COUNTA instead of COUNT, to be general, you may create a measure using DAX formula like pattern below:

 

Measure =
COUNTA ( Table[Incident ID] )
    / COUNTAX ( FILTER ( Table, Table[Breach] = "OK" ), Table[Breach] )

Then drag the measure into value field.

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Anonymous,

 

Yes, if the column contains text, logic values, you would better use COUNTA instead of COUNT, to be general, you may create a measure using DAX formula like pattern below:

 

Measure =
COUNTA ( Table[Incident ID] )
    / COUNTAX ( FILTER ( Table, Table[Breach] = "OK" ), Table[Breach] )

Then drag the measure into value field.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.