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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pg9
Frequent Visitor

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

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

@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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.