cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors