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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top