12-27-2018 09:18 AM
I am new here,
I would like help solving a problem! I'm trying to filter a table passing to a measure's FILTER function, but it does not return values, when I substitute the same measure for "text" values return correctly.
Summarized Table = FILTER (OriginalTable; OriginalTable [field1] = "TEST") - OK
Summarized Table = FILTER (OriginalTable; OriginalTable [field1] = [measurement returning "TEST"]) - NOK
12-27-2018 09:38 AM
Are you sure it's not context transition playing tricks? Do bear in mind that every time you invoke a measure, the DAX engine wraps the call in a CALCULATE. That in your case would trigger context transition since you have a row context in FILTER( )
12-27-2018 10:26 AM
Thanks for your help!
I'm new to the DAX language, could you kindly send me an example of using the FILTER function with measure as an argument?
I am wanting to filter the row of a table to bring an argument to the media and filter another table with this measure.
12-27-2018 10:50 AM
12-27-2018 11:38 AM
Ok, that's a complex measure. Can you share the pbix? It'd be easier to help like that.
Otherwise you could try using the code of the measure directly in the filter argument instead of calling the measure. In that way you could partially check if it is a problem with the context transition derived from the implicit CALCULATE.
12-28-2018 02:07 AM - edited 12-28-2018 12:25 PM
Can you share the pbix file itself? With dummy data if there's confidential stuff on it.
Have you tried to use the code for the measure directly in the filter condition instead of calling the measure?
12-28-2018 08:41 AM
I do not have clever information in this article. How can I send it to you?
I'm basically trying to filter a table with filter info without they are interconnected.
Thank you very much in advance.