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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cg1980
Helper I
Helper I

Data driven snapshot

Hi team, 

We have a set of dashboards that process millon of records through SNOWFLAKE, Power bi manage the charts and KPIS properly but our customer requested a table with a datadriven snapshot, this is,  a sample of the TOP 20 / 50 records that match the report criteria.

as stated the charts and KPIS performs well but we observed that POWER BI send a FULL lookup table to obain the top n records we need and this downgrade the performace of the entire report.

Are you aware or know how we can overcome this powerbi limitation by creating a chart / table / visual that only return the "top N" records without full database lookup?

All the best ,

3 REPLIES 3
cg1980
Helper I
Helper I

Hi @Anonymous we tried that too, same thing ... Power bi attempt to retrieve the entire dataset and perform the top at the report level.. interesting right? 

cg1980_0-1646043634284.png

 

ghumarepratik21
Regular Visitor

Hello,

As per my understanding that you stated, you can direclty apply visual level filter on respective charts for Top N values that you want. It will resolve your issue, you will let limited value on chart that you want and also performance will increase.

I hope this will hep you 

Anonymous
Not applicable

Hi @cg1980 ,

 

According to your statement, I know you connect to SNOWFLAKE to get data. It will load all data after you select the table and click OK.

Did you create a measure for your KPI visual? If so, you can filter the table in your calculation.

MEASURE = 
VAR _TOPN = TOPN(N,'Table','Table'[Value],DESC)
RETURN
CALCULATE(...,_TOPN)

For reference: TOPN

If you want to filter your table to show TopN value in Power Query, I think you can try Table.LastN() function.

For reference: Table.LastN

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.