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

Dynamic Denominator using Multiple Filters - I need a Genius

Trying to create a denominator dynamically.  Here is my DAX.  

 

Shipped group total =
CALCULATE ( SUMX ( KS1, KS1[shipped] )ALLEXCEPT ( 'KS1', KS1[Month_SHP] ) )

 

So for each month_SHP and age in months we have a Shipped group total....

This looks fine because the denominator should not change by age of kits. The problem is the column total, which seems to count ALL the kits.. 

bluebird1996_0-1621306196555.png

This is what I want the table to look like.  Coluns 2 and 3 only total those kits that have and an age of 2 and 3 months repectively.

bluebird1996_1-1621306487481.png

 

Seems so simple, but I am SO STUCK.  Please Help!!

 

Here is the .PBIX

 

Thank you

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not quite sure whether it suits your case, but please try to change the measure like below.

 

Shipped group total =
SUMX (
VALUES ( KS1[Month_SHP] ),
CALCULATE ( SUMX ( KS1, KS1[shipped] ), ( ALLEXCEPT ( KS1, KS1[Month_SHP] ) ) )
)

 

Picture4.png

 

https://www.dropbox.com/s/jjtod7tilnn1x93/Kit%20test.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi JiHwan Kim, 

 

Thank you for an elegant solution, you were indeed the genius I needed.  

 

My original data had many other columns of course, and as I sliced and diced the result, I had to add those additional columns to the ALLEXCEPT clause.  I wonder is there a way to design this so addional columns would not have to be added to the clause?  

 

In any event, I thank you for your kind assistance and profound expertise!!!

Best to you. 🙂 

 

Hi, @Anonymous 

Thank you for your feedback.

It is quite difficult to tell without seeing the full picture how the data model looks like.

If it is ok with you, please share how your table looks like, and how other columns are included, then I can try to look into it to come up with a more accurate measure.

Thank you. 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not quite sure whether it suits your case, but please try to change the measure like below.

 

Shipped group total =
SUMX (
VALUES ( KS1[Month_SHP] ),
CALCULATE ( SUMX ( KS1, KS1[shipped] ), ( ALLEXCEPT ( KS1, KS1[Month_SHP] ) ) )
)

 

Picture4.png

 

https://www.dropbox.com/s/jjtod7tilnn1x93/Kit%20test.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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.