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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors