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
israelfc92
Regular Visitor

Column subtotals do not add up

Hello, I hope you can help me. I have a matrix made through measurements and two levels that does not fit in the subtotals by columns. I already squared the subtotals at the row level. I'm just missing this, thanks for the help.

 

Measure

israelfc92_1-1705605837847.png

Matrix

israelfc92_2-1705605850165.png

 

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

hello @israelfc92 ,

try changing your code to the following : 
calculate(
sumx(
values(ventas[ID EMPRESA]),
calculate(
sumx(
values(fechas[año-mes]),
round([measure]/ 10000, 0)
)
)
)
)

 

if you do not have a column in date table  "year-month", you can create it easily with a calculated column

 

 

let me know if this works for you. 

View solution in original post

2 REPLIES 2
israelfc92
Regular Visitor

Thanks Daniel, so I solved it. Regards

Daniel29195
Super User
Super User

hello @israelfc92 ,

try changing your code to the following : 
calculate(
sumx(
values(ventas[ID EMPRESA]),
calculate(
sumx(
values(fechas[año-mes]),
round([measure]/ 10000, 0)
)
)
)
)

 

if you do not have a column in date table  "year-month", you can create it easily with a calculated column

 

 

let me know if this works for you. 

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.