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
MagnusLarsson94
Frequent Visitor

Filtering help

Hey,

 

Might be a simple question but can't seem to get it right.

 

I have two sql Queries including measurement of products and orderlines.

I need to filter out the orders with a specific measurement.

 

Example:

Order: XXX

Product: A = Ok
Product: B = Too big 

Action: Don't Show Order XXX

 

As for now I've only figured out how to filter the products per say but seeing as an order can have a both accepted and not accepted product I need to filter so that if an order have "Not allowed product" it shouldn't be counted even if it has products on it that's fine. 

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @MagnusLarsson94 ,

 

What's the relationship between Order and Product? Can you show some sample data?

How-to-Get-Your-Question-Answered-Quickly .

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@MagnusLarsson94 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

Yea, might have been abit of on my explanation.

 

Basically:

We're in the need of filtering all orders from last year - sold on a specific channel, get the CBM of the orders and exclude orders with products that have a height larger than "Numeric Value 14".

 

Added Column to make it somewhat clearer:

Yes = Product with numeric value lower than 14

No = Product with numeric value higher than 14

If the order Contains Yes = Show

If the order Contains Yes & No = Don't Show

If the order Contains No = Don't Show.

 

Orders usually have 3+ products meaning that more often than not they have 2-3 numeric values (1 per product). If just one of these producs have the numeric value of higher than 14 => Don't show the order. 

 

Added a picture as following:

 

MagnusLarsson94_1-1619779448246.png

 

Hope this makes it somewhat easier to understand - Thanks.

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.