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

Filtering a dynamic Table created using SUMMARIZE.

I'm creating a dynamically changing table using the below SUMMARIZE expression . How can i filter the summarized table uisng one of the aggregated columns within it. 
My reqquirement is to count the no. of records with Total > 1.

SUMMARIZE('Table1',[Loc],[TypeID],[CtgyID],"Total", sum([CtgyCount]))

2 ACCEPTED SOLUTIONS
AlB
Super User
Super User

Hi @Anonymous

 

Assuming the dynamic table you show is built correctly, you can just do that by :

 

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'Table1', [Loc], [TypeID], [CtgyID], "Total", SUM ( [CtgyCount] ) ),
        [Total] > 1
    )
)

View solution in original post

Anonymous
Not applicable


If I have understood you correctly , you have did a grouping of the Count column , to get the total, and you need to do the filtering of records on above this grouped value.
If so , try the below this may work.

measure= COUNTROWS(FILTER (
SUMMARIZE('Table1',[Loc],[TypeID],[CtgyID],"Total", sum([CtgyCount])) ,
[Total]> 1)
)

Dont forget a thumbs up if this resolves your issue.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable


If I have understood you correctly , you have did a grouping of the Count column , to get the total, and you need to do the filtering of records on above this grouped value.
If so , try the below this may work.

measure= COUNTROWS(FILTER (
SUMMARIZE('Table1',[Loc],[TypeID],[CtgyID],"Total", sum([CtgyCount])) ,
[Total]> 1)
)

Dont forget a thumbs up if this resolves your issue.

AlB
Super User
Super User

Hi @Anonymous

 

Assuming the dynamic table you show is built correctly, you can just do that by :

 

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'Table1', [Loc], [TypeID], [CtgyID], "Total", SUM ( [CtgyCount] ) ),
        [Total] > 1
    )
)

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.