User Profile
MichaelHalling
Frequent Visitor
Joined 6 years ago
User Widgets
Contributions
Using Slicer as input for a DAX measure ignoring some visual filters
Hi I am trying to replicate with DAX what I can do in Excel. Basically, I need a measure that can lookup some values from a Table based on the hard coded value "Xccy" in the Base Column and a dynamic value provided by a Slicer (retrieved in DAX by SELECTEDVALUE(Selector[CCY])). I want the visual filter for the column "Period" to still be active but ignoring columns "CCY" and "Base" in the Visual. I.e. depending what I choose from the slicer the measure returns differtent values in real time and changes as presented in the tables below. Possible? Help much appreciated.Solved372Views0likes1CommentRe: Uso de la lista anidada para filtrar la tabla anidada
@ImkeF ¡Eres increíble! ¡Eso funcionó! Realmente no sé lo que hace r[TenorCode], pero resolvió mi problema. También obtuve algunos consejos útiles de su blog antes de esto, así que un gran GRACIAS por todo su trabajo. @MFelix Gracias por cuidar a 🙂 PS. Te perdiste un '[' en [FilterZC] así que para cualquiera que lea esto, este es el código exacto que resolvió mi problema. Table.AddColumn(FilterListZC, "FilteredZC", each Table.SelectRows([Selected], (r) ?> List.Contains( [FilterZC], r[TenorCode])))910Views0likes1CommentRe: Using nested list to filter nested table
ImkeFYou are amazing! That worked! Don't really know what r[TenorCode] does but it solved my problem. Also gotten a few helpful tips from your blog before this so a big THANK YOU for all your work. MFelix Thanks for caring 🙂 PS. You missed a '[ ' in [FilterZC] so for anyone reading this, this is the exact code that solved my problem. Table.AddColumn(FilterListZC, "FilteredZC", each Table.SelectRows([Selected], (r) => List.Contains( [FilterZC], r[TenorCode])))3.2KViews0likes1CommentUso de la lista anidada para filtrar la tabla anidada
En mi tabla principal [FilterListZC] tengo una columna [FilterZC] que contiene listas anidadas y una columna [Selected] de tablas anidadas. Cada tabla anidada en [Selected] contiene una columna [TenorCode] que me gustaría filtrar con los valores de la lista correspondiente en [FilterZC]. He probado varias soluciones, pero ninguno funciona. Aquí está un ejemplo de uno que no funciona: • Table.AddColumn(FilterListZC, "FilteredZC", each Table.SelectRows([Selected], each List.Contains( (r)-> [FilterZC], [TenorCode]))) ¿Es posible? ¿Qué necesito cambiar? ¡Gracias un millón por cualquier ayuda!Solved949Views0likes4CommentsUsing nested list to filter nested table
In my main table [FilterListZC] I have a column [FilterZC] which contains nested lists, and a column [Selected] of nested tables. Each nested table in [Selected] contains a column [TenorCode] I would like to filter with the values in the corresponding list in [FilterZC]. I have tried various solutions but none work. Here is an example of one that does not work: = Table.AddColumn(FilterListZC, "FilteredZC", each Table.SelectRows([Selected], each List.Contains( (r)=> [FilterZC], [TenorCode]))) Is this possible? What do I need to change? Thanks a million for any help!Solved3.3KViews0likes4Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.