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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
aymeric_kolan
Frequent Visitor

Filter rows

Hi all,

 

I need your help, I don't find solution alone.

I would like identify by ID, #ID where I have only one row with a critea at "Entree_SVI" (see example, results attended is in red).

 

How I can filter on row?

 

Table: DATA SVI_2

Colums:

- InboundCallVoice_CallId

- FilterId

 

Example:

EI228-C21872Platinum
EI228-C21872Entree_SVI
EI228-C22096Platinum
EI228-C22096Entree_SVI
EI228-C22467Platinum
EI228-C22467Platinum_Renvoi
EI228-C22467Platinum_Transf
EI228-C22467Entree_SVI
EI228-C22880Platinum
EI228-C22880Entree_SVI
EI228-C22880Entree_Ferm
EI228-C22880Platinum_Ferm
EI228-C23484Entree_SVI
EI228-C23485Entree_SVI
EI228-C23486Entree_SVI
1 ACCEPTED SOLUTION

Hi @aymeric_kolan,

 

Please use below DAX formula to create a calculated table which only returns three rows that are highlighted in red.

Table_1 =
CALCULATETABLE (
    'DATA SVI_2',
    FILTER (
        'DATA SVI_2',
        CALCULATE (
            COUNT ( 'DATA SVI_2'[FilterId] ),
            ALLEXCEPT ( 'DATA SVI_2', 'DATA SVI_2'[FilterId] )
        )
            = 1
            && 'DATA SVI_2'[InboundCallVoice_CallId] = "Entree_SVI"
    )
)

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Measure = IF(CALCULATE(COUNT([InboundCallVoice_CallId]),FILTER('DATA SVI_2',[FilterId]="Entree_SVI")),1,0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi smoupre.

Thanks but when I used code , it showed "1"
But I would like "3" with my example because there is only 3 ID where there is only one row with "Entree_SVI"

 

Mesure = IF(CALCULATE(COUNT('DATA SVI_2'[InboundVoiceCalls_CallId]);FILTER('DATA SVI_2';[FilterId]="Entree_SVI"));1;0) 

 

 Turn it into a column and just SUM the column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you for your time but request doesn't return answer I need.

I need to know how many ID I have with only one row "Entree_SVI".

When one ID had more than one row, I don't need to count it.

Hi @aymeric_kolan,

 

Please use below DAX formula to create a calculated table which only returns three rows that are highlighted in red.

Table_1 =
CALCULATETABLE (
    'DATA SVI_2',
    FILTER (
        'DATA SVI_2',
        CALCULATE (
            COUNT ( 'DATA SVI_2'[FilterId] ),
            ALLEXCEPT ( 'DATA SVI_2', 'DATA SVI_2'[FilterId] )
        )
            = 1
            && 'DATA SVI_2'[InboundCallVoice_CallId] = "Entree_SVI"
    )
)

Best regards,
Yuliana Gu

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.