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
Anonymous
Not applicable

Table Filter with calculated measure

Hi,

 

I am having a list of columns for agile as features, initiatives, etc. I need to have details in a table and everything works fine with the filters applied for respective teams. But when i use a measure to show the 'planned v2 feature' measure, the filter breaks and i get the entire data in the table. Below is the DAX i'm using.

 

Its a fairly simple expression, where i'm getting the output for count of features with no blank feature states and release names, etc. It works fine as it gives me expected output. But when i filter for a team from the filter pane, or use a slicer, table doesn't get filtered or sliced. Table is filtered as expected without this measure.

 

Feature Plan v2 edit = IF(ISBLANK(CALCULATE(DISTINCTCOUNT('Release Details'[Feature ID]),NOT('Release Details'[Feature State]="Queue"),NOT(ISBLANK('Release Details'[Feature State])),NOT(ISBLANK('Release Details'[Release Name])))),0,CALCULATE(DISTINCTCOUNT('Release Details'[Feature ID]),NOT('Release Details'[Feature State]="Queue"),NOT(ISBLANK('Release Details'[Feature State])),NOT(ISBLANK('Release Details'[Release Name]))))
 
What am i missing here?
1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

Please try below measure.If it is not your case,could you share your sample data and screenshots which could reproduce your scenario and your desired output so that we could help further on it?

Feature Plan v2 edit =
IF (
    ISBLANK (
        CALCULATE (
            DISTINCTCOUNT ( 'Release Details'[Feature ID] ),
            FILTER (
                'Release Details',
                NOT ( 'Release Details'[Feature State] = "Queue" )
                    && NOT ( ISBLANK ( 'Release Details'[Feature State] ) )
                    && NOT ( ISBLANK ( 'Release Details'[Release Name] ) )
            )
        )
    ),
    0,
    CALCULATE (
        DISTINCTCOUNT ( 'Release Details'[Feature ID] ),
        FILTER (
            'Release Details',
            NOT ( 'Release Details'[Feature State] = "Queue" )
                && NOT ( ISBLANK ( 'Release Details'[Feature State] ) )
                && NOT ( ISBLANK ( 'Release Details'[Release Name] ) )
        )
    )
)

Regards,

Community Support Team _ Cherie Chen
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

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Anonymous 

Please try below measure.If it is not your case,could you share your sample data and screenshots which could reproduce your scenario and your desired output so that we could help further on it?

Feature Plan v2 edit =
IF (
    ISBLANK (
        CALCULATE (
            DISTINCTCOUNT ( 'Release Details'[Feature ID] ),
            FILTER (
                'Release Details',
                NOT ( 'Release Details'[Feature State] = "Queue" )
                    && NOT ( ISBLANK ( 'Release Details'[Feature State] ) )
                    && NOT ( ISBLANK ( 'Release Details'[Release Name] ) )
            )
        )
    ),
    0,
    CALCULATE (
        DISTINCTCOUNT ( 'Release Details'[Feature ID] ),
        FILTER (
            'Release Details',
            NOT ( 'Release Details'[Feature State] = "Queue" )
                && NOT ( ISBLANK ( 'Release Details'[Feature State] ) )
                && NOT ( ISBLANK ( 'Release Details'[Release Name] ) )
        )
    )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.