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
pjmanuel
Frequent Visitor

Get the name or the Top product from my count on sales


 

Hi I have 

the ProductcountMeasure  := 

CALCULATE( DISTINCTCOUNT( 'Sales'[SalesOrderNumber]) , 'Sales'[SalesOrderNumber] <> BLANK() )
then I have the the
dimProduct with the follow attributes (ProductCode, ProductDescription)
How can I get the ProductDescription of the product that appears on the top of my codes that appears in my Sales fact
I have the RankProduct := 

RANKX(ALL(Part[PartNumber]),[08 Count of SO Number])
That I can present in a Matrix.
But I would like to present in a card the first product of my rank

 

Thanks

Peter

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @pjmanuel ,

 

If you want to show ProductDescription of the product that appears on the top of your codes in card visual. I think you can add [RankProduct] in visual level filter and set it to show items when value = 1. Then you will get the ProductDescription of the product whose Rank =1.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @pjmanuel ,

 

If you want to show ProductDescription of the product that appears on the top of your codes in card visual. I think you can add [RankProduct] in visual level filter and set it to show items when value = 1. Then you will get the ProductDescription of the product whose Rank =1.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rbriga
Impactful Individual
Impactful Individual

You may use FIRSTNONBLANK with TOPN. 

See this post.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

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.