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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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