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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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