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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RuchiChoudhary
New Member

Exclude row in a table on the basis of Condition

if ContentLogging is present for a resource name then Exclude the row having the value ie. FlagNotSet for the same resource id. If ContentLogging is present for the resourceName and FlagNotSet is not present then ignore. If FlagNotSet is present only for the resourcename then that row should show .

have to filter this row directly in report view - in table

Could you please urgently help in fixing this

 

s3_account_idresource nameCustom
1testContentLogging
1testFlagNotSet
2test1ContentLogging

 

 

3 REPLIES 3
RuchiChoudhary
New Member

Have to filter out this row directly in report view.

I updated the answer, take a look at the second part


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
olgad
Super User
Super User

Hi, if you want to filter those rows out in the visual, then create a Filter column

Filter =
var duplicates=Calculate(COUNTROWS('Tabelle'), ALLEXCEPT('Tabelle', 'Tabelle'[s3_account_id]))
RETURN
If(duplicates=2 && 'Tabelle'[Custom]="FlagNotSet", 0, 1)
and set a page filter or a viz filter to 1 

olgad_0-1683616925576.png


if you want to remove them out of your dataset then

1. Group Rows

olgad_1-1683617181315.png

Expand

olgad_2-1683617200957.pngolgad_3-1683617216702.pngolgad_4-1683617234593.png

And filter for 1.

 

 

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUSpJLS4BUs75eSWpeSU++enpmXnpSrE6KLJuOYnpfvklwaklYBkjqIwhFo2xAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [s3_account_id = _t, #"resource name" = _t, Custom = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"s3_account_id", Int64.Type}, {"resource name", type text}, {"Custom", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"s3_account_id"}, {{"Count", each Table.RowCount(_), Int64.Type}, {"All", each _, type table [s3_account_id=nullable number, resource name=nullable text, Custom=nullable text]}}),
#"Expanded All" = Table.ExpandTableColumn(#"Grouped Rows", "All", {"resource name", "Custom"}, {"resource name", "Custom"}),
#"Added Custom" = Table.AddColumn(#"Expanded All", "Filter", each if [Custom]="FlagNotSet" and [Count]=2 then 0 else 1),
#"Filtered Rows" = Table.SelectRows(#"Added Custom", each ([Filter] = 1))
in
#"Filtered Rows"


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors