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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.