Forum Discussion
Anonymous
3 years agoNot applicable
filtering based on both columns and rows
Hi Everyone So this is a bit of a long story, but please bear with me. I have a table consisting of ingredient index, min and max values for several different analysis. See sample below - the dat...
Anonymous
2 years agoNot applicable
Hi Anonymous ,
I created a sample pbix file(see the attachment), please check if that is what you want.
1. Unpivot the columns [xx index],[xx min] and [xx max] in Power Query Editor
= Table.Unpivot(#"Changed Type", {"X index", "X min", "X max", "Y index", "Y min", "Y max", "Z index", "Z min", "Z max"}, "Attribute", "Value")
2. Create a dimension table
3. Create a measure as below
Flag =
VAR _selindex =
SELECTEDVALUE ( 'Indexes'[Index Value] )
VAR _selattr =
SELECTEDVALUE ( 'Table'[Attribute] )
RETURN
IF ( IFERROR ( FIND ( _selindex, _selattr, 1, 0 ), 0 ) > 0, 1, 0 )
4. Create a matrix visual with the visual-level filter (Flag is 1)
Best Regards