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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors