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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors