The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I Need filter a table column based on cell with pipe separated values, thanks.
Solved! Go to Solution.
Hi @Anonymous ,
First go to query editor>split column filter(table B):
Then create a measure as below:
Total = SUMX(FILTER(ALL('Table A'),'Table A'[ID]=MAX('Table B'[Filter.1])),'Table A'[Value])+SUMX(FILTER(ALL('Table A'),'Table A'[ID]=MAX('Table B'[Filter.2])),'Table A'[Value])
And you will see:
For the related .pbix file,pls click here.
Hi @Anonymous ,
First go to query editor>split column filter(table B):
Then create a measure as below:
Total = SUMX(FILTER(ALL('Table A'),'Table A'[ID]=MAX('Table B'[Filter.1])),'Table A'[Value])+SUMX(FILTER(ALL('Table A'),'Table A'[ID]=MAX('Table B'[Filter.2])),'Table A'[Value])
And you will see:
For the related .pbix file,pls click here.
For the "Table B" query, split the Filter column into rows as shown below:
Proud to be a Super User!
User | Count |
---|---|
64 | |
55 | |
54 | |
51 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
43 |