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