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
ahhollan
Helper I
Helper I

Add values in visual as column in new table

I have one visual that shows # of items per month based on a count.  I have a new table with another type of items/month. I need to add the values from the visual as data in a new column in the new table. Is this possible?

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @ahhollan 

 

You can just manage the relationship between these 2 tables if they have common ItemID/Month:

001.PNG

Then you can add the count column directly:

002.PNG

Alternatively, you can use the RELATED function: https://docs.microsoft.com/zh-cn/dax/related-function-dax

Here's post for your reference: https://community.powerbi.com/t5/Desktop/Lookupvalue-lt-searchvalue-gt-is-a-value-in-the-current-row...

 

please kindly mark the answer as a solution if it helps. thanks a lot!

 

 

Community Support Team _ Dina Ye
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

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @ahhollan 

 

You can just manage the relationship between these 2 tables if they have common ItemID/Month:

001.PNG

Then you can add the count column directly:

002.PNG

Alternatively, you can use the RELATED function: https://docs.microsoft.com/zh-cn/dax/related-function-dax

Here's post for your reference: https://community.powerbi.com/t5/Desktop/Lookupvalue-lt-searchvalue-gt-is-a-value-in-the-current-row...

 

please kindly mark the answer as a solution if it helps. thanks a lot!

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi,

 

I assume that the Months are not repeating in the First Table. If that is the case you can use the below DAX in the New Column of the Second Table.

 

New_Column:= LOOKUPVALUE(Table1[Count_Value], Table1[Month], Table2[Month])

Best Regards,
Vignesh M

If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue 🙂

I'm a newbie to power BI. How do I enter this in the new column? When I enter it I don't get any lookup values. Also, do I use the specific month in place of the word month in the formula?  DAX is a little different than what I'm used to. Thanks for the help.

Anonymous
Not applicable

Hi,

 

On the left Pane Click on the Second Icon from the Top. This will open Table Modelling View. Once you have it, On the Top Ribbon navigate to Modelling-> New Column -> Enter this Formula.

 

If you find it difficult, do share your PBIX file.

 

Best Regards,
Vignesh M

If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue 🙂

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.