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
Anonymous
Not applicable

Top Customers by billing per year

Good afternoon

I try to establish measures to know the top 5 customers per year, according to their turnover. That is, to carry out 3 measures for the years 2018, 2019 and 2020. In my calculated billing I have deleted customers whose Key is 1 and 3.

How could I do these measures?

I attach my customer billing measure to you.

Facturación Clientes = calculate([Total Facturación], filter(DimCliente, not(DimCliente[ClienteKey] in {1,3})))

I also attached customer billing 2020, which would be the same for the rest of years.

2020 Facturación Clientes = calculate([Total Facturación], filter(DimCliente, not(DimCliente[ClienteKey] in {1,3})),FILTER(DimCalendario,DimCalendario[Año]=2020))

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a rank like this

rankx(allselected(DimCliente]) ,[Facturación Clientes])

 

Plot it in visual with year and client and put a visual level filter <= 5

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Create a rank like this

rankx(allselected(DimCliente]) ,[Facturación Clientes])

 

Plot it in visual with year and client and put a visual level filter <= 5

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.