Forum Discussion

Zaytoon's avatar
Zaytoon
Frequent Visitor
3 years ago
Solved

Dynamic Number Format In PBI Measure

I have division measure, which contains values some of them should be displayed as %, and the rest as numbers, formatting should be based on another values in another feild. for example if attribute...
  • tamerj1's avatar
    3 years ago

    Hi Zaytoon 
    You can do

    Mesure2 = 
    VAR Value1 = [Measure1]
    RETURN
    IF ( SELECTEDVALUE ( 'Table'[Attribute] = "ABC", FORMAT ( Value1, "Percent" ), Value1 )