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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.