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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ns1002
New Member

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!

1 ACCEPTED SOLUTION
KRISHP1234
Helper I
Helper I

Try this 
Table =
SUMMARIZE(Sheet1,Sheet1[VP],Sheet1[Director],Sheet1[Title],"Counts",COUNTROWS(Sheet1))
KRISHP1234_0-1715835661435.png

 

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
KRISHP1234
Helper I
Helper I

Try this 
Table =
SUMMARIZE(Sheet1,Sheet1[VP],Sheet1[Director],Sheet1[Title],"Counts",COUNTROWS(Sheet1))
KRISHP1234_0-1715835661435.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.