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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jsmith2970
New Member

Total the result of a Divide Function If It Is >=.80

Hello All,

I am new to Power BI and cannot find a solution to my problem.  I am attempting to perform a divide function which is working great right now in a measure, but another requirement to total the resulting records that are >= .80 or 80%.  Here is a representation of what I am doing to get the percentage:
TotalOver80%Blah = DIVIDE(CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue1"),CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue1") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "" ) + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue2") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue3" ) + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue4") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue5") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue6") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue7") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue8") + CALCULATE ( COUNTROWS ( Table1 ), Table1[FieldName] = "FilterValue9"))
Thank you for any assistance you can provide.

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jsmith2970 ,

 

You can try the following dax:

TotalOver80%BlahTotal =
SUMX ( FILTER ( Table1, [TotalOver80%Blah] >= 0.8 ), [TotalOver80%Blah] )

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @jsmith2970 ,

 

You can try the following dax:

TotalOver80%BlahTotal =
SUMX ( FILTER ( Table1, [TotalOver80%Blah] >= 0.8 ), [TotalOver80%Blah] )

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.