Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
AlanCruz
Frequent Visitor

How to get the first value of a query and pass it as the current value of a parameter?

Hello everyone, I have two queries, one is my calendar table, and the other is a parameter that I use to define what date my calendar starts from. Currently I manually change this value.

AlanCruz_0-1664977032422.png

What I want to do is, use another query that comes from a json file, which returns just one row.

AlanCruz_1-1664977160151.png

I need the start date to change in my calendar table whenever the value of my "Query1" changes.

 

I want to use this value as current value of my "LastDays" parameter, how do I do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

= Table.FirstValue(TableName)

 

--Nate

View solution in original post

2 REPLIES 2
AlanCruz
Frequent Visitor

@Anonymous , I searched for this solution for months, trying to use value as parameter and such, and you solved it with just a simple formula.

Thank you very much. You rock.

Anonymous
Not applicable

= Table.FirstValue(TableName)

 

--Nate

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.