Forum Discussion

agd50's avatar
agd50
Icon for Helper V rankHelper V
3 years ago
Solved

Changing a percentage for chart

I used a measure to create the top line but how can I make the 2021 percentage to equal 3%? With a column and if statement perhaps? I tried an if statement but it was a failure.

 

  • agd50 , if that is hardcoded

     

    if(Max(Table[Year]) =2021, 3, 5)

     

    Otherwise we have adjust the %

     

    If this does not help
    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

2 Replies

  • agd50 , if that is hardcoded

     

    if(Max(Table[Year]) =2021, 3, 5)

     

    Otherwise we have adjust the %

     

    If this does not help
    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

    • agd50's avatar
      agd50
      Icon for Helper V rankHelper V

      That worked perfectly thanks (adjusted to if(Max(Table[Year]) =2021, 0.03, 0.05)