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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
telesforo1969
Resolver I
Resolver I

assign value if there are field matches in multiple tables

I need a measure that shows me the following result: if the value in table 2, table 3, table 4 and table 5 are equal, then it should show me the value in table 6 (Weights).

 

imagen tabla.JPG

1 ACCEPTED SOLUTION
v-sshirivolu
Community Support
Community Support

Hi @telesforo1969 ,

Thanks for reaching out to the Microsoft fabric community forum.


Try these Steps - 

Set up the following relationships in Model View:

Table2[ProductName] → Table1[ProductName]

Table3[ProductName] → Table1[ProductName]

Table4[ProductName] → Table1[ProductName]

Table5[ProductName] → Table1[ProductName]

Table6[ProductName] → Table1[ProductName]

Each should be a many-to-one relationship, directed towards Table1.

 

In Table1 use New Column -

UM_Result =
VAR Group2 = RELATED('Table2'[Group])
VAR Group3 = RELATED('Table3'[Group])
VAR Group4 = RELATED('Table4'[Group])
VAR Group5 = RELATED('Table5'[Group])
RETURN
    IF (
        Group2 = Group3 &&
        Group3 = Group4 &&
        Group4 = Group5,
        RELATED('Table6'[UM]),
        BLANK()
    )
 

Find attached document for your reference

 

Best Regards,
Sreeteja.

View solution in original post

9 REPLIES 9
v-sshirivolu
Community Support
Community Support

Hi @telesforo1969 ,

Thanks for reaching out to the Microsoft fabric community forum.


Try these Steps - 

Set up the following relationships in Model View:

Table2[ProductName] → Table1[ProductName]

Table3[ProductName] → Table1[ProductName]

Table4[ProductName] → Table1[ProductName]

Table5[ProductName] → Table1[ProductName]

Table6[ProductName] → Table1[ProductName]

Each should be a many-to-one relationship, directed towards Table1.

 

In Table1 use New Column -

UM_Result =
VAR Group2 = RELATED('Table2'[Group])
VAR Group3 = RELATED('Table3'[Group])
VAR Group4 = RELATED('Table4'[Group])
VAR Group5 = RELATED('Table5'[Group])
RETURN
    IF (
        Group2 = Group3 &&
        Group3 = Group4 &&
        Group4 = Group5,
        RELATED('Table6'[UM]),
        BLANK()
    )
 

Find attached document for your reference

 

Best Regards,
Sreeteja.

Thank you very much. I will review the information you shared with me

Hi @telesforo1969 ,

I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.

 

Hi @telesforo1969 ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you

 

hi @telesforo1969 ,

I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.

danextian
Super User
Super User

Hi @telesforo1969 

Is Tabla # referring to actual tables or just columns?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
gmsamborn
Super User
Super User

HI @telesforo1969 

 

Would a measure like this help filtering your table?

Include = 
VAR _c2 = SUM( 'SourceTable'[Grupo2] )
VAR _Logic =
    IF(
        _c2 = SUM( 'SourceTable'[Grupo3] ),
        IF(
            _c2 = SUM( 'SourceTable'[Grupo4] ),
            IF(
                _c2 = SUM( 'SourceTable'[Grupo5] ),
                1
            )
        )
    )
RETURN
    _Logic

 

I hope I understood.

Let me know if you have any questions.

 

Added:

Is it a fixed number of groups or does it change?



Proud to be a Super User!

daxformatter.com makes life EASIER!

I forgot to say that the expected value, if the conditions are met, should filter a value from a catalog, in this case from the UM column of table 6. I don't see in your measure how it filters said field.

Hi @telesforo1969 

 

I would like to help but I'm a little unclear about your requirements.

 

Can you provide the following?

 

1)  Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

2) Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

3) Please explain how you would expect to get from step 1 to 2.

 

4) If possible, please show your past attempts at a solution.

 

 A .pbix file with sample data would be best.

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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