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

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