I have a table Feature_Site, I want to count the featureCode by FeatureStatusDescription, I already have a measure that gives me the feature count
Totl_features =
COUNT ( Feature_Site[FeatureCode] )
I am struggling to write a measure that gives me the percentage of feature by the FeatureStatusDescription.
I am able to do this if I show value (Totl_features) as row total.
The complication is I want a matrix table where total feature and percentage is in the row and the statuses are in the column.
The outcome should look like this

I am using this
FeatureConditionMetric = DATATABLE(
"Metric", STRING,
{
{"Num Features"},
{"Percentage"}
}
)
MetricValue =
SWITCH(
SELECTEDVALUE(FeatureConditionMetric[Metric]),
"Num Features", [totl_features],
"Percentage", [Percentage(%)],
BLANK()
)
In my report, I have a page filter for designatedsiteflag = 1 and I have a slicer for the designatedsiteid which will allow me to filter the report
Here is my table result, you can see that the percentage is showing as 1

