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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
meisteryoda
Frequent Visitor

How to just show Dimension elements where rankx has a number

Hi Community

 

I am trying to create a ranked Table Visual for Sales of Articles and the visual should just show the articles where the rankx measure in the first column of the table visual has a value resp. all articles which have a value in the Sales column.

In the example below I'd like to just show the first row, where there are actual sales on that article.

The rest of the articles should not be shown in the visual.

 

Any suggestions to achieve that?

Thanks in advance for any help!

 

meisteryoda_0-1657211116695.png

 

Additional Info for the measures used:

 

TopRanking Sum Article

IF([Turnover Sum] >= 1 ;
RANKX(
ALLSELECTED(DimArticle[ArticleName]);
[Turnover Sum]

;;0;Dense))

 

ArticleName = DimArticle[ArticleName]

Sales = [Turnover **bleep**] -
IF(
AND(
MIN(DimDate[MonthNr]) <> 1;
NOT(ISBLANK([Turnover **bleep**]))
);
CALCULATE(
[Turnover **bleep**];
PREVIOUSMONTH(DimDate[Date])
)
)

 

with [Turnover **bleep**] = CALCULATE(
SUM(Fact[Turnover]);
FILTER(
DimDate;
DimDate[Date] = MAX(Fact[Date])
))

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @meisteryoda 

 

You can filter the TopRanking Sum Article measure on the table visual. Set it to show items when the value is not blank and apply this filter. 

vjingzhang_0-1657592938562.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @meisteryoda 

 

You can filter the TopRanking Sum Article measure on the table visual. Set it to show items when the value is not blank and apply this filter. 

vjingzhang_0-1657592938562.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

meisteryoda
Frequent Visitor

**bleep**  = abbreviation for cumulative lol

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.