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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yenyengo7
Frequent Visitor

Using the ALL function when there is grouping or subgroup

I have created a measure with below DAX

Total Volume LY = CALCULATE(Sum([Volume_LY]),ALL([Product]))... it works okay.
ProductVolume_LYTotal Volume LY
Product 1523
Product 2423
Product 3623
Product 4823
Total2323

 

But when I merged it with another table to view Category, the Tolal Volume LY now change to below. How do I keep the Total Volume LY to remain at 23 same as above table?

ProductCategoryVolume_LYTotal Volume LY
Product 1Protein59
Product 2Protein49
Product 3Produce614
Product 4Produce814
Total 2323
1 ACCEPTED SOLUTION
thiagocamillo
Helper I
Helper I

Try,

 

Total Volume LY = 

   CALCULATE(

             Sum([Volume_LY]), 

                ALL([Product],

                ALL([Category]

)

View solution in original post

3 REPLIES 3
yenyengo7
Frequent Visitor

Can you please help me understand why below DAX does not work?
Total Product Days LY (Rate) = CALCULATE(Sum(Monthly[Product_Days_LY]),ALL(Monthly[Rate Segment]))

yenyengo7_0-1656564156488.png

I need the Total Product Days LY (Rate) to be 4,366,472 across all Rate Segments. 

 

thiagocamillo
Helper I
Helper I

Try,

 

Total Volume LY = 

   CALCULATE(

             Sum([Volume_LY]), 

                ALL([Product],

                ALL([Category]

)

yenyengo7
Frequent Visitor

I mean Total Volume LY to remain at 23 in all lines or products. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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