Forum Discussion

dcadwallader's avatar
dcadwallader
Helper I
4 years ago
Solved

Percentage Calc Not Displaying - Not Sure Why

Morning,

I am using the below calc to show the prevalence of one value, within a set of another values.

For example, if I visit ten houses over the year and find five of these items, my prevalence rate for the year should be 50%.

 

The calc appears to work but when I drag it onto the graph to display as Line Value I get a "Can't Display the Visual Error".

 

As you can see I'm simply "Sum"-ing the column "Sev1 Sum Post Appeal" and getting that Sum Total to appear as a percentage of the total rows (one row = one property visited).

 

Any ideas?

 

Calc Overall Inspection Result Sev1 Prevalence =
DIVIDE(
COUNTROWS('EXTRACT') ,
SUM('EXTRACT'[Sev1 Sum Post Appeal]) ,
BLANK()
)
 
 
  • dcadwallader , there should option to check details. Open that and check I doubt either group by is not applicable or this column : [Sev1 Sum Post Appeal] is text or have som issue

  • Hi,

    Like Amit mentioned it is likely caused by data type error or a problem with grouping. When I re-created you measure it work fine with my sample data:

     

3 Replies

  • dcadwallader , there should option to check details. Open that and check I doubt either group by is not applicable or this column : [Sev1 Sum Post Appeal] is text or have som issue

  • ValtteriN's avatar
    ValtteriN
    Community Champion

    Hi,

    Like Amit mentioned it is likely caused by data type error or a problem with grouping. When I re-created you measure it work fine with my sample data:

     

  • Thanks so much folks!

    Can't believe I missed that one - I'm going to blame that one on this morning's early start!