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
RichardTam
Helper I
Helper I

Create percentage line chart from Yes/No column

I have a column with Yes and No as my KPI target, seperated in months and priorities
I would like to make a percentage line chart
Tried to add in an extra column with "Yes" being "1", and "No" being "0", and the average would give me what I want.
However the chart show up as this:

RichardTam_0-1594030139729.png

I can't seem to change the numbers into %

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@RichardTam , I think you need to create a % measure

 

Divide(sum(Table[column]),calculate(sum(Table[column]),all(Table))

 

You need check % option in data format

Data Format New Rib.png

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Share a simple dataset and show the expected result.  Don't bother about the chart for now.  Once we get the correct results in a simple Table format, we will be able to build any visualisation we want.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-zhenbw-msft
Community Support
Community Support

Hi @RichardTam ,

 

In your screenshot, you should have calculated the correct result, but the format is incorrect.

 

There are two ways to meet your requirement.

 

One is to select “%” function in Formatting as @amitchandak  said.

 

Another way is to add a Format function in your measure or column like this,

 

Measure = FORMAT([average],"percent")

 

Create1.jpg

 

If you have any question, please kindly ask here and we will try to resolve it.

 

Best regards,

 

Community Support Team _ zhenbw

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

amitchandak
Super User
Super User

@RichardTam , I think you need to create a % measure

 

Divide(sum(Table[column]),calculate(sum(Table[column]),all(Table))

 

You need check % option in data format

Data Format New Rib.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.