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
Anonymous
Not applicable

SHOW ONLY MATCHING VALUES THAT REPEAT MORE THAN 2 TIMES

Hello,

 

 

I am trying to create a measure that allows me to see ONLY the values that repeat more than 2 times. 

Using this as an example, I would like to show only the $23000 and the $24000 because they repeat more than 2 times. 

 

$24,500
$23,000
$23,000
$23,000
$27,800
$27,800
$24,000
$24,000
$24,000

 

I have been trying to use the count, contain and groupby formula but I can't figure it out. 

 

Your help will be greatly appreciated. 

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

create a measure

Measure = CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[Column1]))

add this measure in the visual level filter

16.png

 

Best Regards

Maggie

 

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

create a measure

Measure = CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[Column1]))

add this measure in the visual level filter

16.png

 

Best Regards

Maggie

 

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

You could create a table like this:

 

Table = 
VAR __table = SUMMARIZE('Table',[Value],"__count",COUNT([Value]))
VAR __table1 = FILTER(__table,[__count] >= 3)
RETURN
__table1

or a measure you can filter on:

 

Table = 
VAR __value = MAX([Value])
VAR __table = SUMMARIZE('Table',[Value],"__count",COUNT([Value]))
VAR __table1 = FILTER(__table,[Value] = __value)
RETURN
MAXX(__table1,[__count])

@ 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

I am doing it but I get this error. " The expression specified in the query is not a valid table expression." 

 

Multiples of Tens = 
Var _Value=MAX(ECS_EZQuery40[DEBIT_AMOUNT])
Var _Multiple10=SUMMARIZE(ECS_EZQuery40,ECS_EZQuery40[DEBIT_AMOUNT],"COUNT",COUNT(ECS_EZQuery40[DEBIT_AMOUNT]))
VAR _Mulriple102=FILTER(ECS_EZQuery40,ECS_EZQuery40[DEBIT_AMOUNT]=ECS_EZQuery40[DEBIT_AMOUNT])
RETURN
MAXX(ECS_EZQuery40,ECS_EZQuery40[DEBIT_AMOUNT]
)
 
Multiples of Tens = 
Var _Value=MAX(ECS_EZQuery40[DEBIT_AMOUNT])
Var _Multiple10=SUMMARIZE(ECS_EZQuery40,ECS_EZQuery40[DEBIT_AMOUNT],"COUNT",COUNT(ECS_EZQuery40[DEBIT_AMOUNT]))
VAR _Mulriple102=FILTER(ECS_EZQuery40,ECS_EZQuery40[DEBIT_AMOUNT]=ECS_EZQuery40[DEBIT_AMOUNT])
RETURN
MAXX(ECS_EZQuery40,COUNT(ECS_EZQuery40[DEBIT_AMOUNT])
)

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.