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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
azaterol
Helper V
Helper V

Show Total in Matrix

Hello everyone,

 

I have a matrix with items.

Sales on January for Cola 16,05 €: 

azaterol_0-1721903332116.png

 

The sales formula is:

Sales € = CALCULATE(SUMX(AUPOS,AUPOS[Quantity]*AUPOS[AUMAT.VK]))

I would now like to have the total of all sales as a column. How can I get that done?

 

This I want:

azaterol_1-1721903448392.png

 

After that I want to calculate the percentage sales of each item to the total sales

 

 

 

I've already tried everything. Filters are active in this matrix, so please do not use any formulas to deactivate the filters.

Many thanks for your help.

2 ACCEPTED SOLUTIONS
anmolmalviya05
Super User
Super User

Hi @azaterol, Hope you are doing good!

You can create a new measure to calculate total sales using below formula:

 
Total Sales = CALCULATE(
    SUM('Demo table'[Sales]),
    REMOVEFILTERS('Demo table')
)
 
Solution:-

anmolmalviya05_0-1721904095558.png

Note: the remove filter will only work for the created measure, it wouldn't affect your visual or any other thing.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

View solution in original post

SamWiseOwl
Super User
Super User

Hi @azaterol ,

 

If you create a new measure then you can remove the filters without affecting the other columns.

We have a free video on how to remove filters in the Wise Owl Dax series.

 

The calculation would be:
Return sales total=
Calculate(
               [Sales €] -- Your existing measure

               ,ALLSELECTED(Table[ColumnToRemoveFilter]) --This removes internal filter but keeps external

)

If the items in your visual are columns you would need to remove both of their filters:
ALLSELECTED(Table[Artikel-Nr.], Table[Artikel]) --replace table with your actual table name

 

Finally create a final measure that divides the two:
% Sales = [Sales]/[Return sales total]

If this is what you are looking for please mark as a solution so others can find it 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

2 REPLIES 2
SamWiseOwl
Super User
Super User

Hi @azaterol ,

 

If you create a new measure then you can remove the filters without affecting the other columns.

We have a free video on how to remove filters in the Wise Owl Dax series.

 

The calculation would be:
Return sales total=
Calculate(
               [Sales €] -- Your existing measure

               ,ALLSELECTED(Table[ColumnToRemoveFilter]) --This removes internal filter but keeps external

)

If the items in your visual are columns you would need to remove both of their filters:
ALLSELECTED(Table[Artikel-Nr.], Table[Artikel]) --replace table with your actual table name

 

Finally create a final measure that divides the two:
% Sales = [Sales]/[Return sales total]

If this is what you are looking for please mark as a solution so others can find it 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

anmolmalviya05
Super User
Super User

Hi @azaterol, Hope you are doing good!

You can create a new measure to calculate total sales using below formula:

 
Total Sales = CALCULATE(
    SUM('Demo table'[Sales]),
    REMOVEFILTERS('Demo table')
)
 
Solution:-

anmolmalviya05_0-1721904095558.png

Note: the remove filter will only work for the created measure, it wouldn't affect your visual or any other thing.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors