Forum Discussion

newpbiuser01's avatar
newpbiuser01
Helper V
2 years ago
Solved

Apply a Measure as a Filter to Another Measure

Hello,   I have a table that has spend for each month in the last three years. I am trying to create a visual to compare the year to date spend for each year. So as an example, for the latest year ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi newpbiuser01 ï¼Œ

    You can also try the next formula if you have the current month's data each time.

    Measure = var _1month=MONTH(TODAY())
    return
    IF(MAX('Table'[Month])=_1month,MAX('Table'[Spend]),BLANK())

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.