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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Quick question: Percentage of sum total in a table not working

How would I calc the percentage of the CapEx total to the WorkitemID total? I can do it my head but I'm at a loss to have PBI do it
2 percent of 31 is 6.4%

singleton2787_0-1669832765818.png

 

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

 

How would I adjust seeing TagName is in a table called Features, and WorkitemID is in the table, Stories

The measure doesn't error out but I'm getting zeros 

singleton2787_0-1669908014041.png

singleton2787_1-1669908239060.png

 

 

Anonymous
Not applicable

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create measure.

Measure =
var _CapEx=
SUMX(FILTER(ALL('Table'),
CONTAINSSTRING('Table'[TagNames],"CapEx")=TRUE()),[WorkItemld])
var _allcount=
SUMX(ALL('Table'),[WorkItemld])
return
DIVIDE(_CapEx,_allcount)

2. Result:

vyangliumsft_0-1669858317905.png

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors