Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Filter Table to Show Rows When a Value Shows Up a Certain Amount of Times

I'm wanting to filter some data in a "query a dataset" in power automate from a power bi dataset to create a dynamic monthly report.

 

How can I filter data when a value type repeats a number of time? For example, if a "Code" pops up more than 2 times, I want to create a table showing only those values in an automated email.

 

See below for a very simple example

 

Create DateAreaCode
9/5/2022A1
5/4/2022B2
6/5/2022A3
7/3/2022D1
3/4/2022E1
2/5/2022X2
   
   
   
Create DateAreaCode
9/5/2022A1
7/3/2022D1
3/4/2022E1

1 Reply

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    You can place the following filter measure in the filter pane of the table visual and select "Is not blank" then apply the filter 

    Filter Measure =
    IF (
        COUNTROWS ( CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Code] ) ) ) > 1,
        1
    )