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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FriedWater
Frequent Visitor

Show only if a string appear more than a certain amount of time

Hello, how can I show the container no. on the table only when it appears 10 times or more? If less than 10, I do not want it to show on my table, thank you!

 

FriedWater_0-1660578099914.png

 

4 REPLIES 4
v-cgao-msft
Community Support
Community Support

Hi @FriedWater 

 

Please new a measure.

Filter = 
CALCULATE (
    COUNT ( 'Table'[Container No] ),
    ALLEXCEPT ( 'Table', 'Table'[Container No] )
)

And apply it to the filter.

vcgaomsft_0-1661927755344.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Greg_Deckler
Super User
Super User

@FriedWater The general technique is a Complex Selector. The Complex Selector - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Please Try This :
First you need this measure:

count_of_containers = CALCULATE(COUNT( 'Table'[Container No] ))

Then you can get your desired output by creating this column :
Column = IF([Count_of_containers]>10,'Table'[Container No])

Sorry, I think I did not phrase my question correctly. What I meant was only for the container number to appear on my table visual when the exact same container number appears more than 10 times. 

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.