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
brent_excel
Frequent Visitor

% of Total Measure

Hello,

 

I am tyring to figure out how to get the % of Total measure into a PowerPivot table.

 

My data is structed this way, with columns for Product, Time and Qty.

brent_excel_1-1619072356822.png

 

My pivot table looks like this, with the Product column in the row fields.

 

brent_excel_3-1619072625648.png

 

I am unsure of which measure to use to get the %TotalQty.

 

TotalQty = SUMX(FILTER ('Data', 'Data'[Time] = "Current"), 'Data'[Qty])

%TotalQty = ?

 

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @brent_excel 

 

Have a try

%TotalQty = [TotalQty] / CALCULATE ([TotalQty],ALL('Data'[Product]))

View solution in original post

2 REPLIES 2
Vera_33
Resident Rockstar
Resident Rockstar

Hi @brent_excel 

 

Have a try

%TotalQty = [TotalQty] / CALCULATE ([TotalQty],ALL('Data'[Product]))

 @Vera_33 Thanks so much!  This solution is perfect.

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.

Top Solution Authors
Top Kudoed Authors