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
Chanleakna123
Post Prodigy
Post Prodigy

Count Distinct turns different when we filter ,

1.PNG

 

hi , i don't know why i filter the Count Distinct turn all different . the total on table is 272 , Open is 86 and close is 200 , 

when i try filter it's open 86 and Closed 200 , but when i unclick and see the table instead , those turn to 272 with Close and Open . 

not sure what happen from the file . can you help me? i shared you below Pbi link 

 

https://drive.google.com/file/d/1qnR7otuTCxxfA1VOe_leNUKRHtzNorxj/view?usp=sharing

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Chanleakna123,

 

After play with your sample, I found you are summary 'case id' with 'distinct count' mode.

 

I think it means your table have 14 cases with same case id has multiple status(opened and closed) at same time(duplicate post?), power bi summary them and remove duplicate part.

 

You can try to use below measure to find out duplicate case id:

Duplicate Status =
CONCATENATEX (
    FILTER (
        SUMMARIZE (
            ALLSELECTED ( 'Report of Commitee' ),
            [Case ID],
            "Status", COUNTROWS ( VALUES ( 'Report of Commitee'[Status] ) )
        ),
        [Status] > 1
    ),
    [Case ID],
    ","
)

 

Notice: please do mask on sensitive data before share sample file.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Chanleakna123,

 

After play with your sample, I found you are summary 'case id' with 'distinct count' mode.

 

I think it means your table have 14 cases with same case id has multiple status(opened and closed) at same time(duplicate post?), power bi summary them and remove duplicate part.

 

You can try to use below measure to find out duplicate case id:

Duplicate Status =
CONCATENATEX (
    FILTER (
        SUMMARIZE (
            ALLSELECTED ( 'Report of Commitee' ),
            [Case ID],
            "Status", COUNTROWS ( VALUES ( 'Report of Commitee'[Status] ) )
        ),
        [Status] > 1
    ),
    [Case ID],
    ","
)

 

Notice: please do mask on sensitive data before share sample file.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.