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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
aamirkhan_WT
Helper II
Helper II

How to show sum few items and show in 1 item

Hi All

 

I am doing substraction few item but show its shwoing test it showing few time

Test = [NetSales] - [StaffCosts(PreBonus)_MTD]- [Establishment_MTD] - [G&ACost_MTD]- [NWC_AgingProvision_MTD]
Capture.PNG
I want to show the Total only not all item , can you help on this dax what should I do

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aamirkhan_WT ,

 

As I understand it, do you want every row of the matrix to return a total?

Maybe adding the ALL function helps you.

Test =
CALCULATE (
    [NetSales] - [StaffCosts(PreBonus)_MTD] - [Establishment_MTD] - [G&ACost_MTD] - [NWC_AgingProvision_MTD],
    ALL ( 'TABLENAME' )
)

 

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @aamirkhan_WT ,

 

As I understand it, do you want every row of the matrix to return a total?

Maybe adding the ALL function helps you.

Test =
CALCULATE (
    [NetSales] - [StaffCosts(PreBonus)_MTD] - [Establishment_MTD] - [G&ACost_MTD] - [NWC_AgingProvision_MTD],
    ALL ( 'TABLENAME' )
)

 

 

 

Best Regards,

Stephen Tao

 

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

aamirkhan_WT
Helper II
Helper II

In the Table I want show below thing only 

_AMeasure minus StaffCosts(PreBonus)_MTD       13756 
aamirkhan_WT
Helper II
Helper II

Can any one help me on above issue

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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