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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KarunwiShalom
New Member

Percentage of individual column totals

Hi everyone, I need help with this.

I want to create a line chart where each month shows the percentages totalling 100%. I'm working with strings and most of the solutions I've being seeing have to do with numeric data.

 

This is the data being shown correctly for each monthThis is the data being shown correctly for each month

The chart above displays the data correctly but I need it in terms of percentages for each month.

 

Screenshot (7).png

The chart above is what happens when I show the values as a percentage of grand total. But, what I want is percentages for each month totalling 100%. I can't seem to figure it out.

 

Screenshot (8).png

 

The chart above is the original column which I have split into 3 distinct responses that I want on the chart.

 

Screenshot (9).png

 

The chart above is the column which is shown on the chart with the three distinct responses.

@v-nuoc-msft @Ritaf1983

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

Hi @KarunwiShalom ,

 

Thanks for @lbendlin 's reply.

 

@KarunwiShalom This is because Line Chart uses the total number of rows in the table to calculate the percentage, if you want to calculate the percentage by the total number of rows per month, you can create a custom column, you can refer to my test for details.

divide_based_month = 1/COUNTROWS(FILTER(Table,MONTH(Table[Date])=MONTH(EARLIER(Table[Date]))))

 

vmengmlimsft_0-1726040938110.png

vmengmlimsft_0-1726041143347.png

 

 

Best regards,

Mengmeng Li

View solution in original post

2 REPLIES 2
v-mengmli-msft
Community Support
Community Support

Hi @KarunwiShalom ,

 

Thanks for @lbendlin 's reply.

 

@KarunwiShalom This is because Line Chart uses the total number of rows in the table to calculate the percentage, if you want to calculate the percentage by the total number of rows per month, you can create a custom column, you can refer to my test for details.

divide_based_month = 1/COUNTROWS(FILTER(Table,MONTH(Table[Date])=MONTH(EARLIER(Table[Date]))))

 

vmengmlimsft_0-1726040938110.png

vmengmlimsft_0-1726041143347.png

 

 

Best regards,

Mengmeng Li

lbendlin
Super User
Super User

divide(countrows(table),calculate(countrows(table),removefilters(table[rating])),0)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.