Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Folks!!
I have a table with one column say Country and it has just one value (always) say INDIA, though the name name of the country can be changes but number of rows remains 1.
I just want to capture this value in Text variable in Power BI M Query.
Please suggest!!
Thanks
Amit
Solved! Go to Solution.
You can use Table{0}[Column] to refer to it (use your table and column names).
You can put it in a variable with an assignment e.g.
p = TableA{0}[Column1]
Hi @HotChilli ,
Thanks for your answer, it works well.
p = TableA{0}[Column1]
However, i too find some other way out to achieve the goal, below is the code.
varName=Table.FirstValue(TableName)
This will give first column of first row.
Thanks
Amit Srivastava
You can use Table{0}[Column] to refer to it (use your table and column names).
You can put it in a variable with an assignment e.g.
p = TableA{0}[Column1]
Hi @HotChilli ,
Thanks for your answer, it works well.
p = TableA{0}[Column1]
However, i too find some other way out to achieve the goal, below is the code.
varName=Table.FirstValue(TableName)
This will give first column of first row.
Thanks
Amit Srivastava
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.