Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi everyone, im new to power bi. Ive been trying to achieve data using vlookup but i am unable to do so. My aim is to:
-Extract value of data on the firstday of the month at 12 am. (First of the month Table) and pair with each dates on (Main Table)
Error ive gotten : A table of multiple values was supplied where a single value was expected.
Hopefully someone could help, Thank you.
Solved! Go to Solution.
Give this code a go:
Value 1day 12am =
LOOKUPVALUE(
FirstoftheMonth[energydata_value],
FirstoftheMonth[DateKey],'Main Data'[DateKey],
FirstoftheMonth[devicename_id], 'Main Data'[devicename_id]
)
May i know how i could send you my data, Thank you
Hi,
You're getting the error because for a particular date key LOOKUPVALUE is finding more than one energy data values.
Are you able to share a demo file with your structure and some sample data or just some tables of dummy data for each relevant table. Normally there are better ways to achieve what you are trying by leveraging existing relations (RELATED and RELATEDTABLE).
Give this code a go:
Value 1day 12am =
LOOKUPVALUE(
FirstoftheMonth[energydata_value],
FirstoftheMonth[DateKey],'Main Data'[DateKey],
FirstoftheMonth[devicename_id], 'Main Data'[devicename_id]
)
This definitely does its job! Thank you so much !!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 20 | |
| 17 | |
| 12 |
| User | Count |
|---|---|
| 66 | |
| 55 | |
| 42 | |
| 38 | |
| 30 |