cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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 November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

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!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors