Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Change format in mesure in tooltip

Hello i have that kind of measure for my tooltip 
 
And i wloud like  to show sentence with "udział" in % 
And rest of them as number 
like this
Kompletacja udział godzin 23%
Kompl. (jedn. wyd./h) 123,43
 
 
 
Wartość tool tip = CALCULATE(SUM(Dane_agr[wartosc_val]),Nazwy_OP[Nazwa_PBI] in
{"Kompletacja udział godzin",
"Operatorzy udział godzin",
"Załadunek udział godzin",
"Przyjęcia udział godzin",
"Kompl. (jedn. wyd./h)",
"Operatorzy g/d",
"Przyjęcia (pal/h )",
"Załadunek ( pal/h )"})
 
I think i should use something with contains and format but i dont know how to change it 

4 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 
    Please try

    Wartość tool tip =
    VAR Result =
        CALCULATE (
            SUM ( Dane_agr[wartosc_val] ),
            Nazwy_OP[Nazwa_PBI]
                IN {
                "Kompletacja udział godzin",
                "Operatorzy udział godzin",
                "Załadunek udział godzin",
                "Przyjęcia udział godzin",
                "Kompl. (jedn. wyd./h)",
                "Operatorzy g/d",
                "Przyjęcia (pal/h )",
                "Załadunek ( pal/h )"
            }
        )
    RETURN
        IF (
            CONTAINSSTRING ( SELECTEDVALUE ( Nazwy_OP[Nazwa_PBI] ), "udział" ),
            FORMAT ( Result, "Percent" ),
            Result
        )
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you a lot i dont see any error 

       

      but still don't see %

       

       

      • tamerj1's avatar
        tamerj1
        Icon for Community Champion rankCommunity Champion

        Anonymous 
        Make sure you are using the correct column inside SELECTEDVALUE