cancel
Showing results for 
Search instead for 
Did you mean: 
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!:
Mastering Power BI 2nd Edition

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

Top Solution Authors