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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

filtered table with if statement

Hi,

 

I have a report that is quite large, at the bottom of the page there is a transaction detail table so users can see some selected columns from the raw data. 

 

At the moment it is too large to compute. 

 

Capture.PNG

 

What I want to do is create a filtered table (from slicers and visual crossfiltering on the page) of the columns using some form of if(COUNT(TRANSACTION_KEY) < 50), TABLE, BLANK) but I've not been able to do it. 

 

 

any thoughts?

 

 

Thanks.  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

That would still be a static filter would it not?

 

 

I got around it by applying a TOP N (50) on transcation key. It looks like this filter is applied first before the rest of the measures are calculated solving the memory issue.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

 @Anonymous 
The error occurs when a visual has attempted to query too much data for the server to complete the result with the available resources. You may need to try filtering the visual to reduce the amount of data.

 

Try create a flag column, and use that column as a slicer or in the filter panel.

 Flag = IF(COUNT([TRANSACTION_KEY]) < 50), "<50" , BLANK) 


Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

That would still be a static filter would it not?

 

 

I got around it by applying a TOP N (50) on transcation key. It looks like this filter is applied first before the rest of the measures are calculated solving the memory issue.

amitchandak
Super User
Super User

if this 50 comings from the front end.

If not then create a filter table using data transformation/edit query. create a copy of the table and remove rows > 50.

 

Or Try

calculatetable(Table, filter(Table,TRANSACTION_KEY) < 50))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

So I've got it to work with 

 

calculatetable(Table, filter(Table,count(TRANSACTION_KEY < 50 )))

 

But this doesn't generate on the fly. If I extend to 50 to 100k it replicates table as it's larger than the table size, but it doesn't generate when you're using filters within a report page.  

Anonymous
Not applicable

Hi, 

 

yes it's coming from the front end so I don't think I can use edit query/data transformation. 

 

I don't understand how this would work?

 

calculatetable(Table, filter(Table,TRANSACTION_KEY) < 50))

I just get this error message

 

A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors