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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Jiang_Yue
Frequent Visitor

query and Filter out different sets of data under different situations

When I'm doing the Power query, is there any method similar to If condition to do the following actions:

1. If the data less than 4, then I filter out this set of data as query results

2. If the data larger or equal to 4, then I filter out another set of data as query results

3. Under different situations I use different data to make queries as I'll link with Power Automate for later use. 

2 REPLIES 2
v-jingzhan-msft
Community Support
Community Support

Hi @Jiang_Yue 

 

Is it expected to happen when filtering rows in a table or querying data from the data source? The answer may be different due to different data sources and different requirements. Can you provide some more details to describe the scenario? Using some dummy sample data and expected result will help us understand your requirement better. 

 

Best Regards,
Jing

dufoq3
Super User
Super User

Hi @Jiang_Yue, yes it is possible. If you want to know more, provide sample data as table (not a screenshot) and expected result based on sample data.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.