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
RSD
Helper II
Helper II

Subtotal of Matrix is not Correct

Hi Team,

 

Subtotal of matrix is not coming correct.In Measuer Shipment Final the Subtotal is wrong. To Fix this i tried below formula:

 

Final Shipment = IF(HASONEFILTER('Forecast Code'[Master Date].[Year]),
CALCULATE(SUM('Forecast Code'[Shipment QTY]),DATESBETWEEN('Forecast Code'[Master Date],FIRSTDATE('Forecast Code'[Master Date]),
FIRSTDATE('Forecast Code'[Master Date])+14),ALLEXCEPT('Forecast Code','Forecast Code'[Customer],'Forecast Code'[Master Date].[Year],'Forecast Code'[BC]))
,CALCULATE(SUM('Forecast Code'[Shipment QTY]),DATESBETWEEN('Forecast Code'[Master Date],FIRSTDATE('Forecast Code'[Master Date]),
FIRSTDATE('Forecast Code'[Master Date])+14),ALLEXCEPT('Forecast Code','Forecast Code'[Customer],'Forecast Code'[Master Date].[Year])))
 
Could you please help me with this?
 
Regards,
RSD
 
 

 

Subtotal is wrong.PNG

2 REPLIES 2
amitchandak
Super User
Super User

@amitchandak ,

 

Thank you so much for your help but I created new column instead of Measure , now it gives correct subtotal.

 

Thanks Again,

 

RSD

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.