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.
Im getting the error like "The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column." when trying to write a dax expression
Var A = SUMMARIZE(Test','Test'[Delivery],"val",
CALCULATE(MIN([LT (CRAD to Delivery Date)]),ALLEXCEPT('Test','Test'[Delivery]),'Test'[Item Category]<>"TAPA",'Test','Test'[BOL]=1))
RETURN MINX(A,[val])
Here [BOL] is a measure and remaining are columns in Test table.
TIA
Solved! Go to Solution.
Hi,
As the error states when using a table filter expression you need to refer to columns. Since [Bol] is a measure this error happens. Try adding the logic in Bol to a column e.g. with ADDCOLUMNS in the measure.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi @Sri57 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a measure.
Measure 2 =
VAR A =
SUMMARIZE (
'Test',
'Test'[Delivery],
"val",
CALCULATE (
MIN ( 'LT'[CRAD to Delivery Date] ),
FILTER (
ALLEXCEPT ( 'Test', 'Test'[Delivery] ),
'Test'[Item Category] <> "TAPA"
&& [BOL] = 1
)
)
)
RETURN
MINX ( A, [val] )
(2) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Sri57 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a measure.
Measure 2 =
VAR A =
SUMMARIZE (
'Test',
'Test'[Delivery],
"val",
CALCULATE (
MIN ( 'LT'[CRAD to Delivery Date] ),
FILTER (
ALLEXCEPT ( 'Test', 'Test'[Delivery] ),
'Test'[Item Category] <> "TAPA"
&& [BOL] = 1
)
)
)
RETURN
MINX ( A, [val] )
(2) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
As the error states when using a table filter expression you need to refer to columns. Since [Bol] is a measure this error happens. Try adding the logic in Bol to a column e.g. with ADDCOLUMNS in the measure.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |