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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-yuaj-msft
Community Support
Community Support

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
v-yuaj-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.