Forum Discussion

homboy27's avatar
homboy27
Helper III
1 year ago
Solved

How to reference a query column value in another query

I have a dashboard, where I am trying to get this value from a table and I want to use this value to be updated in parameters every time. This would save me from always having to put in todays date i...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi homboy27,

     

    Thank you for reaching out to the Microsoft Fabric Forum Community.


    To use a column value from one query as a dynamic parameter, create a separate query (e.g., EarliestDateQuery) that returns a single value like the minimum date. Then, create a parameter (e.g., EarliestDateParam) and set its value to reference that query. You can use this parameter in other queries for filtering. It updates automatically with data refresh, so you don’t need to enter the date manually each time.


    Otherquery = Table.SelectRows(Source, each [SomeDateColumn] >= EarliestDateParam)

     

    If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.

    Best regards,
    Prasanna Kumar