Forum Discussion

captainlaw's avatar
captainlaw
Microsoft Employee
10 years ago
Solved

Chart Filter Using a Variable?

Hello, I'm wondering for chart filter, is it possible to use a variable?  Right now, I have to hard-code a number.  Appreciated!
  • samdthompson's avatar
    samdthompson
    10 years ago

    ok, now i understand. I was able to do this in excel 2013 with the old power query and powerpivot where by you fiddled  with a piece of M code and could write back a variable from the spreadsheet into the datamodel. I will try and track it down but have had no luck so far. I bet you can still do it in powerbi given that its all the same - it will involve passing back value from an unrelated table. Sorry i dont have a solution at hand.