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
singleton2787
Helper III
Helper III

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
singleton2787
Helper III
Helper III

@v-yangliu-msft 

 

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

 

 

v-yangliu-msft
Community Support
Community Support

Hi  @singleton2787 ,

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
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.