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
e175429
Helper IV
Helper IV

Sum Multiple Columns with Filters

Hello All,

 

Here is a sample of my dataset:

e175429_0-1722257901699.png

This table is called RES

 

I want to sum all the columns while filtering "What is your job tenure?"

 

For example, how many people "More than 10 years"gave a "1" across all 5 columns?

How many people "1-3 years" gave a "1" across all 5 columns?

And so on.

 

Please help.

Thank you

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @e175429 

You can try this measure.

 

vyaningymsft_2-1722304562397.png

 

vyaningymsft_0-1722304418972.png
DAX:

Sum of persons =
VAR _listens =
    CALCULATE ( SUM ( 'Table'[Listens] ) )
VAR _kind =
    CALCULATE ( SUM ( 'Table'[Kind] ) )
VAR _fair =
    CALCULATE ( SUM ( 'Table'[Fair] ) )
VAR _micromanage =
    CALCULATE ( SUM ( 'Table'[Micromanage] ) )
VAR _manageWorkload =
    CALCULATE ( SUM ( 'Table'[Manage workload] ) )
VAR _result = _listens + _kind + _fair + _micromanage + _manageWorkload
RETURN
    _result

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @e175429 

You can try this measure.

 

vyaningymsft_2-1722304562397.png

 

vyaningymsft_0-1722304418972.png
DAX:

Sum of persons =
VAR _listens =
    CALCULATE ( SUM ( 'Table'[Listens] ) )
VAR _kind =
    CALCULATE ( SUM ( 'Table'[Kind] ) )
VAR _fair =
    CALCULATE ( SUM ( 'Table'[Fair] ) )
VAR _micromanage =
    CALCULATE ( SUM ( 'Table'[Micromanage] ) )
VAR _manageWorkload =
    CALCULATE ( SUM ( 'Table'[Manage workload] ) )
VAR _result = _listens + _kind + _fair + _micromanage + _manageWorkload
RETURN
    _result

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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