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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aamirkhan_WT
Helper I
Helper I

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
v-stephen-msft
Community Support
Community Support

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
v-stephen-msft
Community Support
Community Support

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 I
Helper I

In the Table I want show below thing only 

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

Can any one help me on above issue

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.