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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.