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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Matthew1900
Frequent Visitor

Table Viz with DAX Calculated Dimension Column

Hi All - I would greatly appreciate thoughts on the below issue that has stumped me. 

 

I am attempting to create a simple table viz in PBI Desktop that includes a calculated column from one table based on a LOOKUPVALUE formula referencing columns in a separate table. The logic is to look for a certain value from Table 1 in one column of Table 2, and, if found, transform it to the corresponding value in a different column of Table 2. If the value is not found in Table 2, the calculated column is populated by the original value from Table 1. 

Calculated Column Formula:

Custom Sales Campaign Name = LOOKUPVALUE(
  Table2[New Campaign Name],Table2[Existing_Taxonomy],Table1[Campaign],Table1[Campaign])
 
Result:
In a simple table visualization, the values are not correctly displaying when I only include the Calculated Column from Table 1 in the table; however, when I also include the referencing column (i.e. Table 2[Existing_Taxonomy]) from Table 2, the data appears correctly. 
 
Does anyone have any insights on why this might be happening? Thanks so much in advance for any guidance and expertise on this!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Matthew1900 ,

I created some data:

Table1:

vyangliumsft_0-1660808065096.png

Table2:

vyangliumsft_1-1660808065099.png

Here are the steps you can follow:

1. Create calculated column.

Calculated Column Formula =
var _Table1=
SELECTCOLUMNS('Table2',"1",[Group])
return
IF(
'Table1'[Group] in _Table1,
CALCULATE(
SUM('Table2'[Amount2]),FILTER(ALL(Table2),'Table2'[Group]='Table1'[Group]))
,'Table1'[Amount])

2. Result:

vyangliumsft_2-1660808065101.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Matthew1900 ,

I created some data:

Table1:

vyangliumsft_0-1660808065096.png

Table2:

vyangliumsft_1-1660808065099.png

Here are the steps you can follow:

1. Create calculated column.

Calculated Column Formula =
var _Table1=
SELECTCOLUMNS('Table2',"1",[Group])
return
IF(
'Table1'[Group] in _Table1,
CALCULATE(
SUM('Table2'[Amount2]),FILTER(ALL(Table2),'Table2'[Group]='Table1'[Group]))
,'Table1'[Amount])

2. Result:

vyangliumsft_2-1660808065101.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Ashish_Mathur
Super User
Super User

Hi,

Share some data, describe the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors