Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a problem in applying filter from related table, from 1 side of relationship. 'prod'[serial] = "true"
Solved! Go to Solution.
Hi @NoneOR
please try
Total Rules =
VAR T =
FILTER ( 'Cons', RELATED ( 'prod'[serial] ) = "true" )
RETURN
UNION (
SELECTCOLUMNS (
T,
"ID", 'Cons'[Id],
"Name", 'Cons'[Name],
"Rules", "V_1",
"WO", 'Cons'[Work],
"Errors", 'Cons'[V_1]
),
SELECTCOLUMNS (
T,
"ID", 'Cons'[Id],
"Name", 'Cons'[Name],
"Rules", "V_2",
"WO", 'Cons'[Work],
"Errors", 'Cons'[V_2]
)
)
Hi @NoneOR
please try
Total Rules =
VAR T =
FILTER ( 'Cons', RELATED ( 'prod'[serial] ) = "true" )
RETURN
UNION (
SELECTCOLUMNS (
T,
"ID", 'Cons'[Id],
"Name", 'Cons'[Name],
"Rules", "V_1",
"WO", 'Cons'[Work],
"Errors", 'Cons'[V_1]
),
SELECTCOLUMNS (
T,
"ID", 'Cons'[Id],
"Name", 'Cons'[Name],
"Rules", "V_2",
"WO", 'Cons'[Work],
"Errors", 'Cons'[V_2]
)
)
So simple and i didnt think to put it as VAR.
dont need quotation marks but the mistake is on me as i wrote it with mistake at begenning.
Thank you!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |