Forum Discussion
Combined columns with unique values into single filter
I have 6 columns each with unique values. However, the values are related so I want a single filter to impact the visual instead of six separate filters. In the image below: Col1. unique identifier. Col2. Survey question that I want the visual to be based on. Col 3-8 are qualities that I want to combine into a single filter.
Snapshot of data
Using an IF statement didn't work because it forced a hierarchy on the values when I want the value to show up each time. For example SurveyNo 07065074 should display in the visual whether I select Earn Assoc, Transfer, OR Career Change since those were all selected characteristics by the survey respondent.
I also tried the following:
New table
- Anonymous6 years ago
Hi ndo03001 ,
Please add a condition to the original logic and the overall count will be correct.
Here's the modified formula.
GM1 = IF ( ISFILTERED ( GoalTable[t] ), IF ( MAX ( 'Appended_CCSSE_2015_2019'[GOALAA] ) = SELECTEDVALUE ( GoalTable[t] ) || MAX ( 'Appended_CCSSE_2015_2019'[GOALCERT] ) = SELECTEDVALUE ( GoalTable[t] ) || MAX ( 'Appended_CCSSE_2015_2019'[GOALCHGCAR] ) = SELECTEDVALUE ( GoalTable[t] ) || MAX ( 'Appended_CCSSE_2015_2019'[GOALJOBSKILL] ) = SELECTEDVALUE ( GoalTable[t] ) || MAX ( 'Appended_CCSSE_2015_2019'[GOALSELFIMP] ) = SELECTEDVALUE ( GoalTable[t] ) || MAX ( 'Appended_CCSSE_2015_2019'[GOALTR4YR] ) = SELECTEDVALUE ( GoalTable[t] ), 1, 0 ), 1 )The result would be shown as below.
PBIX as attached.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 Replies
- AnonymousNot applicable
Hi ndo03001 ,
If i understand you correctly, please check the following steps as below.
1# Create a calculated table.
Table 2 = DISTINCT(UNION(SELECTCOLUMNS('Table',"t",'Table'[C1]),SELECTCOLUMNS('Table',"t",'Table'[C2]),SELECTCOLUMNS('Table',"t",'Table'[C3])))2# Create measures.
Measure = IF(MAX('Table'[C1])=SELECTEDVALUE('Table 2'[t])||MAX('Table'[C2])=SELECTEDVALUE('Table 2'[t])||MAX('Table'[C3])=SELECTEDVALUE('Table 2'[t]),1,0) Measure 2 = SUMX('Table',[Measure])3# Add 'table 2'[t] as slicer.
Result would be shown as below.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ndo03001Frequent Visitor
I followed the steps but it isn't impacting the visual. Do I need to use the Measure as a visual level filter? I want to display the data in Col 2 titled OOCIDEAS in the visual and use the filter to adjust the returned results for that visual.
- AnonymousNot applicable