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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
larabraghetti
Helper II
Helper II

Can not use expressions that return the variant data type to define computed columns.

Hi!!!

I have a new issue and I think you can help me!

In the table "Anag" I have an imported column called "Effective Duration" that contains decimal numbers. Here the column:

 

Cattura.PNG

Then I have another table called Trasc Scadenze:

Cattura.PNG

 

In the table Anag I created a calculated column:

ED = LOOKUPVALUE('Trasc Scandenze'[Range Scadenza];'Trasc Scandenze'[Scadenza];ROUND(Anag[Effective Duration];1))

 

The issue is that it seems that the lookupvalue doesn't work for all the rows:

Cattura.PNG

 

I don't undestand why it works only for some rows.
Any idea?
Thank you in advance!
Lara

 

 

1 ACCEPTED SOLUTION

@v-sihou-msft

 

Hi! I've found the solution!

I used the Conditional Column in order to define the range of years!
Thank you
Lara

View solution in original post

4 REPLIES 4
v-sihou-msft
Employee
Employee

@larabraghetti

 

In this secnario, when using LOOKUPVALUE(), it shows BLANK() when mismatching rows. So it seems something makes 'Trasc Scandenze'[Scadenza] not equal to ROUND(Anag[Effective Duration],1). Since the format of two column looks like same, please try to remove the ROUND() function to see if the LOOKUPVALUE works properly. If the issue still persists, please share your PBIX. As I test in my local envionment (Power BI Desktop with April Update), it works fine.

 

2.PNG

3.PNG

 

Regards,

Thank you @v-sihou-msft!

 

I have tried but without success.

 

How can I send you here the .pbix file.

Is it enough share the dashboard?


I'm using this version of PowerBI: Versione: 2.34.4372.501 64-bit (april 2016)

@v-sihou-msft

 

Hi! I've found the solution!

I used the Conditional Column in order to define the range of years!
Thank you
Lara

larabraghetti
Helper II
Helper II

Any idea?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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