Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dynamically Style/Fade Out Current Month Axis

I am showing real time data in charts (lines and bar charts). The current months' data is not final yet, so I would like to indicate that somehow, for example by fading that out. So in the chart below I would like to fade out/ give Apr-20 another color, or add a marker to the chart in another color. Is this possible in PowerBI?
 

  • I did it like below (see PBIX attachment)

     

    Measure1 = IF(MAX([Column1])>[MaxDate],BLANK(),SUM('Table'[Column2]))
    
    Measure2 = IF(MAX([Column1])>EOMONTH([MaxDate],-1),SUM('Table'[Column2]),BLANK())

     

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    I did it like below (see PBIX attachment)

     

    Measure1 = IF(MAX([Column1])>[MaxDate],BLANK(),SUM('Table'[Column2]))
    
    Measure2 = IF(MAX([Column1])>EOMONTH([MaxDate],-1),SUM('Table'[Column2]),BLANK())