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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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