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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DeniseHaas
Regular Visitor

Data not grouping (repeating totals) in a table report

I've created a table visualization in my report that has two columns:  Business Unit (from Employee Data table) and Hires This Month (Count of Employee numbers from Hires table).  I am expecting to see the number of hires per business unit for this month.  We had 26 hires this month, but the data is showing 26 on each line item:

PB-Grouped.jpg

I was expecting to see this:

Business UnitHires this Month
Concrete9
Industrial14
Transportation3
Total26

 

If I change the Hires this Month (employee number) to "Don't Summarize" rather than "Count", I can see that all of the correct data is there.  It shows me 9 lines for Concrete, 14 lines for Industrial, and 3 lines for Transportation...Totalling 26.

PB-Ungrouped.jpg

I'm pretty new to PowerBI, but this seems like it should have worked with no effort.  Not sure what I've done to cause this.  Note:  The two tables are linked by the Employee number field (which seems to be working properly based on the non-grouped example above.  Thank you in advance for your help!

1 ACCEPTED SOLUTION

Hi  @DeniseHaas ,

 

I guess your measure is  like:

 

Measure = CALCULATE(COUNT([Hires this month]),ALLSELECTED()) or measure=countx(all(table),[Hires this month]),right?

Modify your measure as below:

CALCULATE(COUNT([Hires this month]),FILTER(ALL(table),[Business Unit Name]=MAX([Business Unit Name]))

 


Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@DeniseHaas , Either you measure is wrong or business unit is not joined with employee table.

 

Share data model and measure. used for this visual.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you.  The fields are definitely linked (which i think is shown by the second screenshot showing the correct number of lines for each group).  What could be causing my measure to be wrong?  The data in the Hire table is just straight data that I have grouped by employee number to show the most current hire date.  Could that be causing the problem?  Thanks!

Hi  @DeniseHaas ,

 

I guess your measure is  like:

 

Measure = CALCULATE(COUNT([Hires this month]),ALLSELECTED()) or measure=countx(all(table),[Hires this month]),right?

Modify your measure as below:

CALCULATE(COUNT([Hires this month]),FILTER(ALL(table),[Business Unit Name]=MAX([Business Unit Name]))

 


Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

@DeniseHaas , use of all, allselected , allexcept, remove filter can change behaviour

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.