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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Filter out rows with multiple conditions

Hi, 

 

I am having troubles with filtering out a few rows from my data set. I have created a small example below. I want to exclude the rows where [ContractNO] = MM005 and where [Number] = 100, 101, 102, 103 and 104. The expected result are seen in picture 2. 

linwer_0-1629883473742.png

 

And the expected outcome to:

linwer_1-1629883505796.png

Hope someone can help me.

 

Best regards

Line

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Create a measure like this one and use it with other non summarized columns

 

countrows(filter(Table, not([ContractNO] = "MM005" && [Number] in{ 100, 101, 102, 103 , 104})))

View solution in original post

Thejeswar
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

This might be because the Number Column might be an integer. Try changing it to Text Datatype.

View solution in original post

3 REPLIES 3
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

This might be because the Number Column might be an integer. Try changing it to Text Datatype.

amitchandak
Super User
Super User

@Anonymous , Create a measure like this one and use it with other non summarized columns

 

countrows(filter(Table, not([ContractNO] = "MM005" && [Number] in{ 100, 101, 102, 103 , 104})))

Anonymous
Not applicable

I have tried to create the measure in my dataset, but get an error saying that the function does not support comparing values of type integer with values of type text. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.