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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
theopa
Frequent Visitor

matrix filter topn and etc

hi all

 

i want show on a matrix

filter with rank top10(value) and etc(remain values sum)

 

DAX

_021Cal_ =
IF(NOT(ISBLANK( SUM('Fct_Sales_Domestic'[sales]))),TOTALYTD(CALCULATE(sum(Fct_Sales_Domestic[sales])), D_Calendar_Sales[Date])/1000000,0)
3 REPLIES 3
miTutorials
Super User
Super User

Watch the below tutorial to display Top N and others in the Visual.

 

Display Top 3 Products and group others products in PowerBI using DAX | MiTutorials - YouTube

 

Regards

Ismail

 

amitchandak
Super User
Super User

@theopa , not very clear . But TOPN can be used like

 

FIrst Have measure

YTD= TOTALYTD(CALCULATE(sum(Fct_Sales_Domestic[sales])), D_Calendar_Sales[Date])

 

Top10= Calculate( [YTD], keepfilter(TOPN(10,allselected([Table[Date]), [YTD], asc) ))

 

refer

Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ

thank you for reply

 

i understand that topn topn

but i need is topn and others

if i set top3  than not only top3 values but also another values with etc in brand column

and other columns maybe sum other brands values😂

theopa_0-1701412541158.png

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.