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

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

Reply
Ronnie_L
Frequent Visitor

Measure Help

I need a measure to count the number of times each entry from column "UnitID" is in 39 columns labeled Unit2, Unit3,..., Unit40. 

 

There are about 800 UnitID's. The UnitID is in the form of A101, A102... through Z101, Z102... The 39 columns have the number of times the UnitId was Unit2...Unit40.

 

I'm new to Power BI and I keep getting errors or obviously bad numbers with my formulas. Below is a snip of the data.

 

Thanks for any help,

 

Ronnie

 

Ronnie_L_0-1681138602092.png

 

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi, 

 

could you unpivot the columns in power query then group by the attribute which would be the column title to do the count?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

4 REPLIES 4
Ronnie_L
Frequent Visitor

Sorry, I'm not allowed to provide a copy of the file. Other people at my office are looking into the issue now. Thanks for trying to help.

 

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi, 

 

could you unpivot the columns in power query then group by the attribute which would be the column title to do the count?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

I had to include another column with the unpivot and it worked. 

 

Thank you.

Do you have a copy of the PBIX file or the data i could look at?

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.