The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have created a single item query in Power Query:
I'm trying to reference it in some DAX calculations. I'd be grateful if anyone could help me get the correct syntax:
Many Thanks
Solved! Go to Solution.
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?
Hi @mrandall86 ,
I created a table myself and implemented what you showed in Power Query.
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)
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.
Hi @mrandall86 ,
I created a table myself and implemented what you showed in Power Query.
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)
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.
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?
Thanks so much for taking the time! This works and I understand why, which is nice 👍
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |