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
rschaudhr
Resolver II
Resolver II

Filter data from table from two rows

I have a table visualization and there are companies listed and the first row shows 0 under some columns. So, I want to filter out that row the rows and column that have 0s. Then I want to go to the last column which is blank for the most part, but when it show the value, I want to pull that data in that column and also show some other columns associated with it. This two sets of rows should merge as one row in the end. 

 

The screen shot is shownCapture2.png

I hope this is enough information. Thank you!

3 ACCEPTED SOLUTIONS
v-lili6-msft
Community Support
Community Support

hi, @rschaudhr 

For your case, you could add set the visual level filter for this table visual.

Set first column is "0" and last column is not blank.

1.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Unfortunately, it did not work. The reason is that if I set the filter to 0, the the values with non-blank disappear. In this case the filter has be be done in two different column.

View solution in original post

hi, @rschaudhr 

If so, just create measure by OR logic as below:

New measure= IF( [first column expression] =0 || [last column expression] <>blank(),1,2)

Then drag this column into visual level filter directly and set it is "1"

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @rschaudhr 

For your case, you could add set the visual level filter for this table visual.

Set first column is "0" and last column is not blank.

1.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Unfortunately, it did not work. The reason is that if I set the filter to 0, the the values with non-blank disappear. In this case the filter has be be done in two different column.

hi, @rschaudhr 

If so, just create measure by OR logic as below:

New measure= IF( [first column expression] =0 || [last column expression] <>blank(),1,2)

Then drag this column into visual level filter directly and set it is "1"

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.