Counting options in a Enum

Hi.

Is there a way to count the possible values that exist in an Enum before the user selects any? (as per my screenshot below) I have tried with COUNT(SELECT(MHE_Comm_Fleet[Failed Check],[Record ID]=[_THISROW].[Record ID])) but i presume this expression requires a value to be stored first before it will return a value greater than 0.

Is there a way I can count before any values are selected?

Many thanks.

0 2 204
2 REPLIES 2

Bahbus
New Member

If your enum options are setup as such:
3X_2_e_2e45f22b660b311724465c6fe13febfdf29ad5cc.png
Then there is no way to count those, directly. Perhaps COUNT(UNIQUE(SELECT(MHE_Comm_Fleet[Failed Check], TRUE)))
would work assuming all options have been selected at least once.

Otherwise, your best bet would be to create a separate table to hold these options. Link to them via a VALID_IF instead of hardcoded in the column.

Thankyou @Bahbus. I donโ€™t have them hardcoded in but I think your suggestion of an alternative table storing the values might be best.

Top Labels in this Space