Forum Discussion
TopN records within custom table
Hi,
I have created 2 custom tables from the main table using DAX query.
3 Replies
- amitchandakSuper User
santhidhanuskod , You should create a measure
//change to include the filter from first column
M1 = countrows( FILTER('Live Query', AND(
'Live Query'[workflow_stage_name] = "Completed",
'Live Query'[planned_due_date].[Date] >= TODAY() - 14)) )Then have top N Measure
calculate([M1] ,TOPN(3,allselected('Active milestones'[planned_due_date]),[M1]), values('Active milestones'[planned_due_date]))
choose the correct columns as needed
Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ
- AnonymousNot applicable
Is your problem solved? If not, can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.
Best Regards,
Jayleny
- MVenablesAdvocate II
Hi,
Instead of using a TOPN Measure have you considered added a filter to the visual. Advanced filtering then selecting how many by TOPN as per my example below. I have filter by my 'Sell' (Sales Measure)
Thank you