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
luisClive
Helper III
Helper III

TOPN and CONCATENATEX Help Please for TOP3 ( debug formula)

Hi I really need some help

 

im looking for this result ,

..............top 3 Clients concatenated in a row, which all works perfect

 

luisClive_0-1715896907265.png

HOWEVER when a partner has only top 2 ( i.e has only 2 Clients in porfolio)...

this is what I get .....TOP 2 and all unwanted junk (i.e top2 + all other Clients with no value and no relation to that partner)

Please advise how to debug formula so that if if less than 3 only 2 values or 1 Value is returned ( sort of like ignore blanks too..)

 

luisClive_1-1715897182621.png

Here is the DAX Code

 

TOPN CLients =
var topntable =
TOPN(3,ALLSELECTED('FY Revenue YTD and Month Costs and Eng'[Client Name]),[Actual Select],DESC)
RETURN
CONCATENATEX(topntable,'FY Revenue YTD and Month Costs and Eng'[Client Name],",",[Actual Select],DESC)
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

They all show up because they are tied for third place.

 

Add a filter to exclude clients without [Actual Select] value.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

They all show up because they are tied for third place.

 

Add a filter to exclude clients without [Actual Select] value.

Helpful resources

Announcements
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.