Forum Discussion

tomtang's avatar
tomtang
Helper III
5 years ago

Query Plan become slower when applying Visual level filter

Dear all Power BI Guru,

 

I am creating a ranking measure which can dynamically identify TopN sales by client.

 

My measure is working fine, however, when I apply the ranking measure in the visual level filter, it slows down all the query plan.

 

My question is there any way to enhance it?

 

Attached is my reproduced PBIX file using Contoso dataset.

https://1drv.ms/u/s!AuELRdj9xWWta0xJfF6rRXOYcQ4?e=YW9UPf

(I know with Contoso dataset the variance is very minimum, but my real report has more data point and more measure in the matrix, so the difference is quite noticeable)

Below are the snapshots for the illustration.

 

Snapshot 1: I apply the Ranking measure in visual level filter

 

Snapshot 2: I run the Performance Analyzer to get query plan

 

Snapshot 3: I try to analyze the Server Timings with/without "__valueFilterDM3", which is the query reflecting ranking measure in visual level filter

 

Snapshot 4: Server Timings without visual level filter 

 

Snapshot 5: Server Timings with visual level filter, which is slower than without the filter

 

5 Replies