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! Learn more

Reply
IF
Post Prodigy
Post Prodigy

total by using a reference table

Hi,

I have a simple situation but couldn't solve it. I have table "Reference":

 

TypeValue
a5
b7
c10

 

Another table is : "Main"

MaterialType
K1a
K2a
K3b
M1c
M2c

 

I want to show the data and get total of it. But could not get the total. I also want to show the total at a card. How can I do it?

332.jpg
Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @IF ,

 

Based on your description, you can create a calculated column in Table "Main" as follows.

value = LOOKUPVALUE('Reference'[Value],Reference[Type],[Type])
Result:
 

v-yuaj-msft_1-1611554653969.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @IF ,

 

Based on your description, you can create a calculated column in Table "Main" as follows.

value = LOOKUPVALUE('Reference'[Value],Reference[Type],[Type])
Result:
 

v-yuaj-msft_1-1611554653969.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

 

 
vanessafvg
Super User
Super User

in your layout tab you create a relationship between the tables and joining the reference together

 

then you can drag the value against the material





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




But it doesn't show the total as I provided the image in the post. I also want to a have card showing the total as well.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.