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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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