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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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