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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vpatel55
Kudo Commander
Kudo Commander

ALL not ignoring column filter

Using the following code, I'm trying to get ALL to ignore a column filter. It should mean that all the colum values should be exactly the same. However, the values are different and ALL does not seem to be working. If I add ALL on the whole table, then it does work. However, this would not be acceptable as that would also ignore my row filters, which I do not want.

 

Any ideas as to how I can ignore just the column name? I don't have any age page level or visual level filters. Thanks.

 

MeasureName =
CALCULATE (
    COUNTA ( tblJobs[ColumnName] ),
    ALL ( tblJobs[ColumnName] )
)

 

vpatel55_0-1657362275278.png

 

 

1 ACCEPTED SOLUTION

Hi, i'm afraid that the file is very big and contains sensitive data. In the end, I pasted into Excel and worked out manually. It could be a bug, as the code is otherwise what it should be. This will probably not have a solution, so feel free to delete the thread. Thanks.

View solution in original post

8 REPLIES 8
v-xiaotang
Community Support
Community Support

Hi @vpatel55 

Thanks for reaching out to us.

When I test, the all() function works ok, could you please share a sample file for us to check? Thanks

vxiaotang_0-1657598127096.png

 

Best Regards,

Community Support Team _Tang

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

Hi, i'm afraid that the file is very big and contains sensitive data. In the end, I pasted into Excel and worked out manually. It could be a bug, as the code is otherwise what it should be. This will probably not have a solution, so feel free to delete the thread. Thanks.

vpatel55
Kudo Commander
Kudo Commander

Thanks @Anonymous but same result i'm afraid, the column continues to filter.

Anonymous
Not applicable

Vpatel55,

 

Try to removefilters on postalcode, this is the last filter on your display ?

Thanks @Anonymous but same issue, in fact even if I remove PostcodeArea from the row axis, leaving just the column, it still filters by column (screenshot below). I'm not aware of any other filters at all. Its an odd one!

 

vpatel55_1-1657368059626.png

 

Anonymous
Not applicable

vpatel55,

 

last chance 🙂 

your 0,1,2... what is this field ? 

No problem @Anonymous , its a table of grouped numbers. The data type is decimal, but changing it to whole number doesn't change the result. My ultimate goal is produce a cumulative percentage. So that '1' is x% of the total, 2 is y% of the total, etc.

 

vpatel55_0-1657369100603.png

 

Anonymous
Not applicable

i,

 

Tyr this

MeasureName =
CALCULATE (
    COUNTA ( tblJobs[ColumnName] ),
    ALL ( tblJobs[ColumnName] ),removefilters(tblJobs[ColumnName] )
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.