Reply
pg9
Frequent Visitor
Partially syndicated - Outbound

DAX Measure to calculate column records in a matrix table

Hi All,

 

I have pivoted few columns and created a dynamic matrix table with details mapped to Employee IDs in the dataset.

 

However, I'm looking to count the number of records in the employee ID column alone. 

 

Can someone suggest a dax measure to calculate the number of records for an individual column for the dynamic table please?

2 REPLIES 2
pg9
Frequent Visitor

Syndicated - Outbound

Hi @Amit 

Please find the scenario below,

 

I have a slicer as shown below

pg9_0-1687249077308.png

 

The output table changes as when I make selections on the slicer

Step 1 : When i choose one field, it gives me the below total count

pg9_1-1687249153441.png

 

Step 2 : When i start choosing extra columns, the count keeps doubling as below,

pg9_2-1687249219274.png

 

pg9_3-1687249270902.png

 

 

Requirement : I want to count the rows for only the EMPLID field alone and do not want the row count to change when I change the selections.

 

Can you help me with a DAX measure for this please?

amitchandak
Super User
Super User

Syndicated - Outbound

@pg9 , a measure like below should do

cnt = count(Table[Employee ID])

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)