Forum Discussion
How to use Top n with additional filter
Stuki , assume sales is measure create a new measure use numeric parameter if need
GT 10k =sumx(Values(Customer[Customer]) , if([sales]>10000, [sales], blank()) )
then have topn sales measure
sumx(keepfilterS(TOPN(5, ALLSELECTED(Customer[Customer]) , [GT 10k], asc)), [GT 10k])
TOPN with Numeric Parameter -https://youtu.be/cN8AO3_vmlY?t=26448
Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ
Thanks amitchandak .
I'm going to need some time to fully understand this. I'm pretty new to Power BI so still on the learning curve when it comes to DAX. I have made an attempt to put this into my model and the GT 10k measure is working as it should (ie. returning a blank for any customer with sales < 10k). However, the 2nd measure doesn't return anything. This is what I have entered for it (I have changed the names of the measures so that are consistent with my naming convention):