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

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

Reply
timgiefer
New Member

Measure Calculate Count values

Hi everyone!

 

I'm new to Microsoft Power Bi but there is the thing I want to do:

 

I've got a column called "cutting" with 0 (machine isn't working) and 1 (machine is working).

I want to create a measure called "UT" where the amount of rows with "cutting" = 1 is divided by the total amount of columns in the table 'Tabelle1'. The DAX formula is the following:

 

 

UT = CALCULATE(COUNT('Tabelle1'[cutting])/COUNTROWS('Tabelle1'); 'Tabelle1'[cutting] = 1)

 

When I try to display the measure on my dashboard, the field is blank.

 

I have already looked at different forum posts similar to my problem, but nothing seems to work.

 

 

Can anyone help?

 

 

Thanks

 

 

Tim

 

 

 

1 ACCEPTED SOLUTION
BeemsC
Resolver III
Resolver III

Hey @timgiefer,

Try it with the following measure: 

UT = DIVIDE(CALCULATE(COUNT('Tabelle1'[cutting]);Tablelle1[Cutting] = 1);COUNTROWS('Tabelle1'))


Might be a "" wrong, but should be fine.
Good luck !

 

View solution in original post

5 REPLIES 5
BeemsC
Resolver III
Resolver III

Hey @timgiefer,

Try it with the following measure: 

UT = DIVIDE(CALCULATE(COUNT('Tabelle1'[cutting]);Tablelle1[Cutting] = 1);COUNTROWS('Tabelle1'))


Might be a "" wrong, but should be fine.
Good luck !

 

Hi @BeemsC

 

Thanks for your answer, but the result is still a blank ...

 

 

What are you using to show the data ?
And what happens when you filter out the blanks using the Visual level filters


@BeemsC

 

I checked the DAX-formula again, I made a mistake by taken the wrong column name... my bad!

 

 

Thanks for your help!!

 

Tim

@timgiefer,

 

Since your problem has been resolved, please help accept solution. Your contribution is highly appreciated.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.