cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aamirkhan_WT
Frequent Visitor

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
Frequent Visitor

In the Table I want show below thing only 

_AMeasure minus StaffCosts(PreBonus)_MTD       13756 
aamirkhan_WT
Frequent Visitor

Can any one help me on above issue

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.