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

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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