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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
henrydhs
Frequent Visitor

Automatically filter 3 fields at the same time

Dear colleagues,

I have a question and I'm not sure how to solve it. I have two tables and I want one to filter 3 fields at the same time automatically in table 2. The problem is that it only allows one relationship at a time.

I leave the following example in case you can help me.

 

Table 1

henrydhs_0-1718983162787.png

Table 2

henrydhs_2-1718983343328.png

 

 

Relationship

henrydhs_1-1718983275328.png

When putting Active there another relationship appears this problem

henrydhs_0-1718984755635.png

 

I tried to use this Dax formula but doesn't work. I think because doesn't have a relationship 

henrydhs_0-1718985206016.png

 

Thank you

 

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

you can either create a composite key that concatenates these three fields. or your can use disconnected tables and TREATAS based measures to filter your second table.

View solution in original post

Thank you very much. It´s more easy than I thought, I creat that concatenate relationship. Thank you 

View solution in original post

3 REPLIES 3
henrydhs
Frequent Visitor

Hello everyone,

After creating the concatenate function, I now have a problem selecting the PDCA table with the PDCA filter. The percentage calculation formula does not work correctly. Below is an example:

```DAX
ColunaFiltragem Append L1 L2 = 'Append L1 L2'[Description Piece type] & " - " & 'Append L1 L2'[Descrição Defeito] & "-" & 'Append L1 L2'[Model]

The calculation formula is:
```DAX
PDCA 3% = DIVIDE([Reprocesso 1o Fogo], [Entrd. EF 1o Fogo Fixo Geral], 0)

Example 1:
When the PDCA table is filtered:

henrydhs_5-1719388765779.png

 

DAX
Entrd. EF 1o Fogo PDCA = CALCULATE(SUM('Append L1 L2'[Entrd. EF 1o Fogo Coluna]))

henrydhs_3-1719388574138.png

 

 

 Example 2:
I tried with the `CALCULATE` and `ALL` formula, but there is no filtering:

henrydhs_4-1719388645684.png

 

 

DAX
Entrd. EF 1o Fogo PDCA = CALCULATE(SUM('Append L1 L2'[Entrd. EF 1o Fogo Coluna]), ALL('Append L1 L2'[ColunaFiltragem Append L1 L2]))

 

The correct value would be:

henrydhs_2-1719388487968.png

 

The problem seems to be with the filtering of the formula `Entrd. EF 1o Fogo PDCA`, but I don't know how to solve the issue to perform the calculation correctly.

lbendlin
Super User
Super User

you can either create a composite key that concatenates these three fields. or your can use disconnected tables and TREATAS based measures to filter your second table.

Thank you very much. It´s more easy than I thought, I creat that concatenate relationship. Thank you 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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