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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.