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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Wrong column total in matrix table with months

Dear all,

 

i have this problem in a matrix table in which i have in colums the difference between months from December '19 to September '20.

The problem is that the totals for columns is wrong, in fact my goal is to have a "Total" on columns calculate as a sum from December to September for which rows. I can't add another measure because it will put the measure in each colums so in each months.

The measure used for difference between months is:

 
MoM = IF(ISBLANK('02 Carte_Mensile'[Stock Carte]),BLANK(),'02 Carte_Mensile'[Stock Carte]-'02 Carte_Mensile'[Previouse month])

 

The matrix is the following:

 
 
 

Capture.JPG

 

 

 

 

 

Appreciate  help

Thank you all,

Lorenzo

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

 

According to your description, I created some data to show:

v-yangliu-msft_0-1605229401487.png

Here are the steps you can follow:

1. Create a measure to filter. The original total after filtering is 3500, but the display is 4900

Measure = IF(SUM('Table'[Amount])<1000,0,SUM('Table'[Amount]))

2. Create a measure for total.

Total =
var _new=SUMMARIZE('Table','Table'[Amount],"_value",[Measure])

return IF(HASONEVALUE('Table'[Amount]),[Measure],SUMX(_new,[_value]))

3. Result.

v-yangliu-msft_2-1605229401490.png

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try something like

MoM = sumx(values(Table[Account]),IF(ISBLANK('02 Carte_Mensile'[Stock Carte]),BLANK(),'02 Carte_Mensile'[Stock Carte]-'02 Carte_Mensile'[Previouse month]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you,

i have already tried with this kind of Dax but unfortunately it doesn't work here.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors