cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryan0521
Frequent Visitor

Return a column if a computed column met the criteria

Hello everyone,

 

I want to return a column if their corresponding criteria has been met, for example;

 

Name2019 Sales2018 SalesSales Growth
Apple   1,365,386.00   1,425,704.00-4.23%
Orange    1,913,488.00   2,116,739.00-9.60%
Grape       697,523.00       691,203.000.91%
Dog       979,273.00   1,097,049.00-10.74%
Cat   1,751,316.00   1,441,230.0021.52%
Fox   3,228,354.00   3,144,902.002.65%

 

I only want to filter names whose sales growth were positive which is computed and not included in the database.

 

hope you can help me with this one.

2 ACCEPTED SOLUTIONS
v-juanli-msft
Community Support
Community Support

Hi @ryan0521 

If you need to filter rows which Sales Growth >0, only keep rows which Sales Growth <=0,

Open edit queries, select "Less than or equal to"

5.png6.png4.png

 

Or in Data model,

7.png

 

Or create a column, then filter out rows=0,

8.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

Hi @ryan0521 

Yes

You could filter it by filter pane

7.png

 

Best Regards
Maggie

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @ryan0521 

If you need to filter rows which Sales Growth >0, only keep rows which Sales Growth <=0,

Open edit queries, select "Less than or equal to"

5.png6.png4.png

 

Or in Data model,

7.png

 

Or create a column, then filter out rows=0,

8.png

 

Best Regards
Maggie

 

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

Thank you so much @v-juanli-msft , but is there a way I can filter it out in REPORT?

Hi @ryan0521 

Yes

You could filter it by filter pane

7.png

 

Best Regards
Maggie

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors
Top Kudoed Authors