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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Rene34324
Frequent Visitor

two not related tables ,use one value in the other table and use that value to calculate new value

I have to views that are not related (and cannot be related)
They both have a month field,  the data is presented in tables like below:

month            field a (int)            month                       field b (int)
1                                                  1
2                                                  2
..                                                  ..
12                                               12
               table 1 (visual)                                    table 2 (visual)

I would like to have field b  availalble in table 1, the field b value should also be used in a measure to calculate a new value
in combination with values from table 1, that can be used to draw a line in a stacked column chart

How can i achieve this ?
Thank you.

  

1 ACCEPTED SOLUTION

I resolved this by creating two views  with summed data and joined them on year,month

View solution in original post

4 REPLIES 4
v-weiyan1-msft
Community Support
Community Support

Hi @Rene34324 ,

 

If your problem is still not resolved, to allow us to better understand the problem and help you, can you share sample data and the results you are hoping for? Show it as a screenshot or excel. Or a sample pbix after removing sensitive data.

 

Best Regards,
Yulia Yan

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

I resolved this by creating two views  with summed data and joined them on year,month

Idrissshatila
Super User
Super User

Hello @Rene34324 ,

 

try the following calculated column, adjust the table names and fields according to your data

column from table 2= 
LOOKUPVALUE (
    'table 2'[field b (int)],
    'table 2'[month],
    'table 1'[month],
)

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila

The tables 1 and 2 , are table/matrix visuals (updated this in the original question) i reffer too, with aggregated data(month) .
Are they accessible too by name ?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors