Forum Discussion

ns1002's avatar
ns1002
New Member
2 years ago
Solved

How do I filter by rows and count the total?

I need to be able to filter on the columns below to create a new column that filters and counts based on them.

 

For example, if Type is "AWS" or "Azure" filter based on director and count the number of same title there are. Similary for Type that is not "AWS" or "Azure".

 

TypeVPDirectorTitle
AzureSteveAdamEngineer
AzureSteve

Adam

Data Science
AWSSteveAdamEngineer
AWSSteveRoryEngineer
On-PremSteve

Rory

Network
On-PremSteveRory Network
VHOSTSteveRoryNetwork
Azure

Mary

AustinData Science
AzureMaryAustinData Science

 

The new table with the column should look like this:

VPDirectorTitleCount
SteveAdamEngineer2
SteveAdamData Science1
SteveRoryEngineer1
Steve

Rory

Network3

Mary

AustinData Science1

 

I tried to use the DAX GROUPBY and also the GROUPBY in power query. I'm not able to figure out a solution.

 

Please help me, if you can.

Thank you!

  • Try this 
    Table =
    SUMMARIZE(Sheet1,Sheet1[VP],Sheet1[Director],Sheet1[Title],"Counts",COUNTROWS(Sheet1))

     

2 Replies

  • Try this 
    Table =
    SUMMARIZE(Sheet1,Sheet1[VP],Sheet1[Director],Sheet1[Title],"Counts",COUNTROWS(Sheet1))

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ns1002 ,

    Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

    If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

    How to Get Your Question Answered Quickly 

    Regards,

    Xiaoxin Sheng