Question

Is there a way to conditional format a measure value as date in some case and numeric in some cases? I have a measure value Max, however some measure are dates and some are numeric. If I convert everything to numeric I lose dates and viceversa. can we just select a single measure and define max of it as a date and for others as numeric?

Was it helpful?

Solution

This will depend on how your dates are formatted, but a date in dd/mm/yyyy format could be identified by the following calculated field.

IIF((FIND(ATTR([Max]), "/") > 0), 'Date', 'Number')

Identifying numeric or date values using a calculated field

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top