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
Anonymous
Not applicable

Add a virtual column with (vlookup) data from another table

Hello all,

 

I have two tables with the same keyfield.

 

Table_1 contains facts and the keyfield exist more than one time.

Something like this:

Key, Dimension, Value
1011322|2 WA 4004.28
MR181152|5 OI 35.23
MR181152|5 WA 1366.06
MR189911|7 OI 70.32
MR189911|7 WA 858.08
MR20009222|2 WA 164.58
MR20014782|2 SVO 112.5
MR20014782|2 SVI 135
MR20014782|2 WA 584.34
MR20015293|4 WA 987.48

 

Table_2 contains the number of objects on a certain date.

In my dashboard i use a single select on the Date field. So, every keyfield exists once after the selection.

The table looks like this:

Key, Date, NoOfObjects
1011322|2 1/31/2021 98
MR181152|5 1/31/2021 1
MR189911|7 1/31/2021 1
MR20009222|2 1/31/2021 2
MR20014782|2 1/31/2021 2
MR20015293|4 1/31/2021 12

What i want is to add a calculated column to add the number of objects, 'on the fly', to Table_1.

Everytime that the user changes the Date selection, the column must change.

Thanks for your help,

 

Halmar

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

What i want is to add a calculated column to add the number of objects, 'on the fly', to Table_1.
Everytime that the user changes the Date selection, the column must change.

Calculated columns are immutable. They cannot be influenced by user filter choices. Rethink your requirement.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

What i want is to add a calculated column to add the number of objects, 'on the fly', to Table_1.
Everytime that the user changes the Date selection, the column must change.

Calculated columns are immutable. They cannot be influenced by user filter choices. Rethink your requirement.

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.