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


@ 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!:
The Definitive Guide to Power Query (M)

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