Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Satish_Kumar
Helper V
Helper V

Error while using lookup.

Hi All,

 

I need help in this issue which I am facing.

 

I am trying to use a column for lookup function but show me an error.

 

error v lookup.png

 

 

Regards,

Satish Kumar

9 REPLIES 9
SivaMani
Resident Rockstar
Resident Rockstar

@Satish_Kumar,

 

Please create the measure as a Calculated column with the same formula. Wherever we use calculated measure, it will return a single value. It expects aggregation function to return a value.

 

Thanks,

Siva

@SivaMani

 

Thanks for replying.....

 

You want to me recreate the same column as a measure.

But why it shows me an error I did the same to lookup my Lastfy and it was done successfully.

 

Regards,

Satish

 

 

Is it a calculated measure or column?

@SivaMani

 

Actually, i am not able to create last month as a measure.

And as you told me to do I tried but I think we cannot use the same formula to create the measure.

If I am wrong then please correct me.

 

Regards,

Satish 

 

@Satish_Kumar,

 

You requirement is,

Last Month.PNG

Right?

@SivaMani

 

Yes!!!!

 

But I have to make a lookup with another table also to demonstrate their values according to years and month.

 

 

Regards,

Satish Kumar

 

Use the Last Month DAX which you created earlier,

 

LM = LOOKUPVALUE(Testing[MonthName],Testing[MonthOrder],Testing[MonthOrder]-1)

 

It will work

@SivaMani

 

Sorry!!

 

But it is not working.

 

abc.png

 

Regards,

Satish

Create calculated column instead of measure.

 

Last Month.PNG

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.