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
ONCKdata
Helper I
Helper I

Dynamic Top N filter for graph

Hi,

Thank to Gilbet's post 'Dynamic TopN made easy with What If Parameter' I have created a top N filter in my PowerBI report.

 

It is working well for table visual.

But I have a line graph which shows customer wise revenue across months, when I try filter it with TopN visual, it is showing top N customers in each month, resulting in a discontinuous graph.

Is there way to filter it based on customer grand total instead of monthly total? (similar to built in topN filter but dynamic)

 

Thanks

 

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @ONCKdata,

 

I 'm not very clear about your scenario. Which TopN do you want to filter? Customer or Revenue?

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

I would appreciate it If you could describe your expected output in more details.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

Thank you for the reply.

 

I have added an graphical representation of desired and actual output, please find this link

 

 

Thanks.

Hi Cherry,

I was just verifying the file that I have sent you, magically, the TopN filter from DAX is working after adding the required measure in the inbuilt TopN filter, i.e., topN in the 'desired' sheet if I give an arbitrarily large input of for the inbuilt TopN under filters, the dynamic one is giving desired output.

 

I do not understand the logic behind it, though.

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.