Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
HI.
I have the below sample data set.
I want to have a measure that sums [Head Count] by [Floor]. For example, the 5th floor total head count would be 57. 6th floor head count would be 87. I have many floors and many depts within each floor. DAX syntax please. Thank you.
Solved! Go to Solution.
Hi,
I am not sure how your expected result looks like, but if you are trying to create a measure in the table visualization with having floor name as the first column, please try to create a measure somehting like below, and then put it into the visualization.
expected result measure: =
SUMX (
SUMMARIZE (
TableName,
TableName[Floor],
TableName[Floor Name],
TableName[FloorDeptKey],
TableName[Head Count]
),
TableName[Head Count]
)
Hi,
I am not sure how your expected result looks like, but if you are trying to create a measure in the table visualization with having floor name as the first column, please try to create a measure somehting like below, and then put it into the visualization.
expected result measure: =
SUMX (
SUMMARIZE (
TableName,
TableName[Floor],
TableName[Floor Name],
TableName[FloorDeptKey],
TableName[Head Count]
),
TableName[Head Count]
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
42 | |
30 | |
27 | |
27 |