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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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