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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

DAX Measure to get %

Hi, 

 

I am trying to create a matrix table for the total stock quantity and value for 2 different months. I want to get the % of stock value (versus the total stock values in that particular month) but seems like the formula that I used below is comparing against the total stock values across 2 months. 

 

% Total Value = [Total Value($)]/CALCULATE([Total Value($)],ALLEXCEPT('Age Inventory 0262','Age Inventory 0262'[Closing Date]))

 

As I am very new to DAX, appreciate if anyone could help me with the formula. Thanks !

 

Xiner_Lim_3-1623310870073.png

 

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

@Anonymous 

 

I can't tell you 100% what's wrong because one has to see the model to be able to. But you should definitely take a good look at this: Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI

because I sense you might be using ALLEXCEPT without a full understanding of how this calculate modifier behaves.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.