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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.