The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |