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
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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msft

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

 

 

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.