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
mrandall86
Frequent Visitor

Syntax for referencing a single item query using DAX

Hi,

I have created a single item query in Power Query:

mrandall86_0-1720619115998.png

 

I'm trying to reference it in some DAX calculations. I'd be grateful if anyone could help me get the correct syntax:

 

mrandall86_1-1720619248846.png

 

Many Thanks

 

 

2 ACCEPTED SOLUTIONS
OwenAuger
Super User
Super User

Hi @mrandall86 

I would suggest:

ReportDate = SELECTEDVALUE ( _ReportDate[_ReportDate] )

This returns the single visible value in a column (if there is a single value) otherwise blank (by default).

 

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

Anonymous
Not applicable

Hi @mrandall86 ,

I created a table myself and implemented what you showed in Power Query.

vyilongmsft_0-1720677881833.png

vyilongmsft_1-1720677903535.png

It looks like you want to show the first row of tabular data, and you're going from Power Query to DAX. I think you can create the following Measure.

Measure = FIRSTNONBLANK('Table'[ReportDate],1)

vyilongmsft_2-1720678774873.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @mrandall86 ,

I created a table myself and implemented what you showed in Power Query.

vyilongmsft_0-1720677881833.png

vyilongmsft_1-1720677903535.png

It looks like you want to show the first row of tabular data, and you're going from Power Query to DAX. I think you can create the following Measure.

Measure = FIRSTNONBLANK('Table'[ReportDate],1)

vyilongmsft_2-1720678774873.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Yilong,

 

This works and your instructions were very easy to follow. I appreciate your time and efforts.

OwenAuger
Super User
Super User

Hi @mrandall86 

I would suggest:

ReportDate = SELECTEDVALUE ( _ReportDate[_ReportDate] )

This returns the single visible value in a column (if there is a single value) otherwise blank (by default).

 

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Thanks so much for taking the time! This works and I understand why, which is nice 👍

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.