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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
drivero
Helper I
Helper I

Total columns in matrix does not retun the SUM

Hi, 

 

I have this data but when I apply the subtotal column from Visual, the TOTAL is not working. Is showing just the last values from the last month, but it should be the sum of all months for the metric. Here you have:

 

drivero_0-1708038740206.png

 

3 REPLIES 3
drivero
Helper I
Helper I

some data:

IdCliente IdEstado FechaSolicitud Aceptado% ImporteSolicitado MotivoKO
201 5 2021-03-10 00:00:00.0000000 3000000 NULL NULL
5691 5 2021-06-01 00:00:00.0000000 250000 NULL NULL
87 5 2018-02-21 00:00:00.0000000 45000 NULL NULL
317 5 2019-11-22 00:00:00.0000000 12600 NULL NULL
320 5 2022-04-25 16:44:20.4248355 226000 NULL NULL
328 5 2021-01-29 00:00:00.0000000 30000 NULL NULL
769 5 2019-11-07 00:00:00.0000000 140000 NULL NULL
1180 5 2019-02-07 00:00:00.0000000 8000000 NULL NULL
5683 5 2021-04-05 00:00:00.0000000 50000 NULL NULL
5686 5 2019-10-10 00:00:00.0000000 0 NULL NULL
5709 5 2020-03-23 00:00:00.0000000 300000 NULL NULL
45 5 2021-04-26 00:00:00.0000000 0 NULL NULL
46 5 2021-04-26 00:00:00.0000000 0 NULL NULL
60 5 2020-03-31 00:00:00.0000000 NULL NULL NULL
81 5 2019-05-23 00:00:00.0000000 8000 NULL NULL
89 5 2022-04-25 16:44:21.6591717 NULL NULL NULL


and then I have the  'DWH DimDate' with diferents columns (calendar values, month, year, etc). I tried this:

var result = CALCULATE(count('DWH FacRiesgo_Otops'[Aceptado%]),
'DWH FacRiesgo_Otops'[Aceptado%] = 0.00,
'DWH FacRiesgo_Otops'[IdEstado] <> 14,
'DWH FacRiesgo_Otops'[IdEstado] <> 15,
'DWH FacRiesgo_Otops'[IdEstado] <> 12)

RETURN
Calculate ( sumx ( values ('DWH FacRiesgo_Otops'[Aceptado%]), result) )
--Calculate ( sumx ( values ('DWH DimDate'[Month]), result) )



sevenhills
Super User
Super User

[# Aceptado 0% 2] = Calculate ( sumx ( values (yourmatrixcol1), [# Aceptado 0%]) )

 

See if the above measure works, then you can tweak and combine both into one...

 

[# Aceptado 0%] =
var _mStep = ... your existing measure code ...
RETURN Calculate ( sumx ( values (yourmatrixcol1), _mStep) )

 

 

I tried both but still does not work 😞

Helpful resources

Announcements
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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