Forum Discussion

jbolivar's avatar
jbolivar
Frequent Visitor
7 years ago
Solved

Parameter What If

Hello friends. According to the function indicated below, a calculation is being made to a specific year (2019).   AcumulaPeriodos Unds = // VAR CuentaMeses = CALCULATE(DISTINCTCOUNT(DATA[Mes])...
  • AkhilAshok's avatar
    7 years ago

    You can create a variable in the starting of the measure and use this variable everywhere:

    VAR SelectedYear = FORMAT(SELECTEDVALUE(Paremeter[Paramter]), "####")

     

    Format function will convert the Integer to a Text.