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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ghouse_peer
Post Patron
Post Patron

Count with all Status and Divide by Total

Hi team,

 

I ahve a column in my dataset named "Status".

In Status column we have Completed, In Progress, Awaiting Confirmation and Blanks.

 

 Total Alerts= Sum of counts (Completed+In Progress+Awaiting Confirmation+Blanks.)

Sum= (Completed+In Progress)

 

Calculation: Sum/Total Alerts.

 

Kindly help me with the solution.

 

Thanks in advance

 

 

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

Hi   @ghouse_peer 

try like:

Ratio =
VAR _value = CALCULATE(COUNTROWS(TableName), TableName[Status] IN {"Completed", "In Progress"})
VAR _allvalue = CALCULATE(COUNTROWS(TableName), ALL(TableName))
RETURN 
DIVIDE(_value, _allvalue)

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

Hi   @ghouse_peer 

try like:

Ratio =
VAR _value = CALCULATE(COUNTROWS(TableName), TableName[Status] IN {"Completed", "In Progress"})
VAR _allvalue = CALCULATE(COUNTROWS(TableName), ALL(TableName))
RETURN 
DIVIDE(_value, _allvalue)

Thank You it worked...

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors