Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Struggling to remove filters

With the following data:


table1:

col1col2col3
aX1
aY2
aZ3
bZ1
bY2

 

table2:

col4col5
1Q
2R
3S

 

joined 1 to many on the numeric column:

carbonsnowstorm_0-1718790643181.png

My desired outcome, with the final column being the count of occurrences in column1:

col1co2col5measure
aXQ3
aYR3
aZS3
bZQ2
bYR2

 

I would also like to filter by column5, so if the user pics Q the following outcome is shown:

col1col2col5measure
aXQ3
bZQ2

 

I have tried a few methods with ALLEXCEPT, ALLSELECTED and REMOVEFILTERS but an struggling to get it correct.

 
Can anyone help?
 
Thanks.
2 ACCEPTED SOLUTIONS
jgeddes
Super User
Super User

Something like this might work for you...

Measure = 
COUNTROWS(
    FILTER(ALL(TableOne), TableOne[col1] = SELECTEDVALUE(TableOne[col1]))
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

May I ask if your problem has been solved. If the above reply was helpful, you may consider marking it as solution. If the problem is not yet solved, please follow the steps below:

Add new measure:

count =
CALCULATE (
    COUNTROWS ( 'Table1' ),
    FILTER ( ALL ( 'Table1' ), 'Table1'[col1] = SELECTEDVALUE ( Table1[col1] ) )
)

 

Final output:

vyifanwmsft_1-1719905207782.png

vyifanwmsft_0-1719905189820.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

May I ask if your problem has been solved. If the above reply was helpful, you may consider marking it as solution. If the problem is not yet solved, please follow the steps below:

Add new measure:

count =
CALCULATE (
    COUNTROWS ( 'Table1' ),
    FILTER ( ALL ( 'Table1' ), 'Table1'[col1] = SELECTEDVALUE ( Table1[col1] ) )
)

 

Final output:

vyifanwmsft_1-1719905207782.png

vyifanwmsft_0-1719905189820.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

jgeddes
Super User
Super User

Something like this might work for you...

Measure = 
COUNTROWS(
    FILTER(ALL(TableOne), TableOne[col1] = SELECTEDVALUE(TableOne[col1]))
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.