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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
omergencay
Regular Visitor

filter

Hi, I have a problem. I am trying to filter my table with two of its ingredients are "the stock name" and "stock selling profit marge". The Stock name measure is written above "ABC/123" and the stock selling profit ratio measure is written above " 1.2". 

I wanna do a filter like Filter( ratio, ratio >0,00).  But while I am trying to do that, ı couldn't select the "ratio table." What is the problem you think?

Then ı wanna calculate an "average stock selling profit marge" without negative ( <0,00)  and neutral numbers ( 0,00)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @omergencay,

 

You can write a measure to check current value and return tag, then drag this measure to visual level filter to filter matched records.

 

Sample measure:

Filter Tag =
VAR curr =
    SELECTEDVALUE ( Table[stock selling profit marge] )
RETURN
    IF ( curr > 0 && curr - INT ( curr ) = 0, "Y", "N" )

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @omergencay,

 

You can write a measure to check current value and return tag, then drag this measure to visual level filter to filter matched records.

 

Sample measure:

Filter Tag =
VAR curr =
    SELECTEDVALUE ( Table[stock selling profit marge] )
RETURN
    IF ( curr > 0 && curr - INT ( curr ) = 0, "Y", "N" )

 

Regards,

Xiaoxin Sheng

@Anonymous

Filter Tag1 =
VAR curr =
SELECTEDVALUE ( 'Export Worksheet (eklenti)'[RASYO] )
RETURN
IF ( curr > 0 && curr - INT ( curr ) = 0; "Y"; "N" ) 

 

I wrote this formulate and then my conclusion occurs just like that in table visual:

Filter Tag            Ratio

N                        811,83

 

 

Anonymous
Not applicable

Hi @omergencay,

 

You can direct drag this measure to visual level filter of a table visual and filter 'Y' result.

In addition, your table visual need a category column to expand ratio result.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.