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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Monami
New Member

Dynamic % of total

Hi!
I'm trying to calculate the weight % out of all product list, which I am able to do with the formula below, 
but only if the row in the visual is of the product. my question is how can I do the calc whil changing the row to any other dimension? i.e. Sales person. Is this possible to have the weight % of products change in according to the leading row ?
thanks all!!
 
RM Mix =
DIVIDE([AM_RM_Weight_Fact_Sales],
    CALCULATE([AM_RM_Weight_Fact_Sales], ALL(Dim_Product)),BLANK()   )
2 REPLIES 2
Monami
New Member

YES! I apllied ALLSELECTED() as I have filteres on the page and it worked.

THANKS!

olgad
Super User
Super User

Hi, dont specify the dimproduct table ALL(Dim_Product), simply All()


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.