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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Allexcept on multiple dimensions

Hi,

 

Got this problem I can not figure out, so hopefully someone can assist me with this. Below is a screenshot from a matrix visualisation on a simplified data model that shows my problem.

 

For each product I would need to get the product's percentage of the total sales within the product group each month. 

 

The Allexcept_Productmeasure shown below gives the result 330 in January for product group A and 10 for product group B. These figures are however the total amounts for all the periods in the data set. I would need the measure to show 180 (A) and 10 (B) in January. There is one-to-many relationship between a Calendar table and the Volume table

 

I have tried to add another "ALLEXCEPT" for the time dimension, but I can't get this to work. Apparently "ALLEXCEPT" cannot be used on mutiple dimensions, but what would be the best solution to get the results I need?

 

 

celenius_2-1628883225600.png

 

 

Best regards,

 

Chris

 

 

 

 

 

1 ACCEPTED SOLUTION

OK. In that case, the guide here indicates that you can include it within ALLEXCEPT since it's part of the expanded table.

 

Allexcep_Productgroup =
CALCULATE (
    [Sales],
    ALLEXCEPT ( volume, dim_date, volume[productgroup] )
)

 

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

Do you have a separate date dimension table? I'd guess not given this behavior but I would strongly recommend creating one.

Anonymous
Not applicable

@AlexisOlson Hi, yes, I have a separate date dimension table and a one-to-many relation between the tables.

OK. In that case, the guide here indicates that you can include it within ALLEXCEPT since it's part of the expanded table.

 

Allexcep_Productgroup =
CALCULATE (
    [Sales],
    ALLEXCEPT ( volume, dim_date, volume[productgroup] )
)

 

Anonymous
Not applicable

@AlexisOlson Hi, Thanks a lot, that did the trick! 

celenius_0-1628908550099.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors