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
Serdet
Post Patron
Post Patron

Query Reduction Filter

Hi All,

 

I currently have two tables as per the below dataset examples;

 

Task IDTonnage
11
22
34
42
52
64

1st table

 

Task IDHeight
12
21
32

2nd table

 

Please note the 1st table with 'Tonnage' included has more 'Task ID' fields than the second table. 

 

I am having a problem when I publish my report to the web where one visual is not working due to the 'Query being too large". I am wondering if it was possible to filter the 1st table to only show Task ID's that where included within the 2nd table as this will drastically reduce the amount of data Power BI is having to look at.

 

Many thanks,

 

E

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Serdet 

 

Sure just remove blanks on the visual filter like below

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

amitchandak
Super User
Super User

@Serdet , If table 2 to has unique task ids. Then join 1 and 2 on task and take task id from 2.

 

try measures like

calculate(sum(table1[Tonnage]),filter(Table1, Table1[Task ID] in Values(Table2[Task ID])))
calculate(sum(table1[Tonnage]),filter(Table1, Table1[Task ID] in allselected(Table2[Task ID])))

 

or use treatas

https://docs.microsoft.com/en-us/dax/treatas-function

 

Fowmy
Super User
Super User

@Serdet 

In Power Query, perform a MERGE and select RIGHT OUTER . . .

Fowmy_0-1597747418887.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.