DAX to Test for Whole Number
问题 I have a Actuals column like so: ID | Airport ------------ A | 98.4 B | 98.0 C | 95.3 I'm attempting to format the numbers above into percentages for a front-end report. I have this written in a switch statement - for ease I'll just write the logic as an IF boolean. example_measure = VAR Nums = SELECTEDVALUES(Table[Actuals]) VAR FormatNums = IF(DIVIDE(ROUND(nums,1), nums) = 1, format(nums,"0%"),format(nums,"0.0%") - RETURN FormatNums no matter what I do this always returns a number with a