Back
Add this formula then refresh and then connect
Dim pqFormula as String pqFormula = "let..in" Dim pqName as String pqName = "<Name of the connection>" ' Update the formula for the specific power query. ThisWorkbook.queries(pqName).Formula = pqFormula ' Refresh the connection ThisWorkbook.Connections("Query - " & pqName).Refresh
Want to learn more about Power BI? Check out today: Power BI course
31k questions
32.8k answers
501 comments
693 users