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
Diva
New Member

total of 12 months for a column and count values where sum>10

I am new to Power BI and I need to find total value for each name and then count the names where total value is more than 10 in power BI. I am struggling to find a correct solution. I am caluclting this value for past 12 month for which I have set a relative date filter.

 

Name DateValue
a10-01-20182
b12-01-20183
a18-01-20185
a08-10-20178
c10-10-201710
c20-07-20172

 

 

The result of this should be 2 as a and c have values greater than 10.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Two measures:

 

Total Value = SUM('#aTable'[Value])

Count Above 10 = 
COUNTROWS(FILTER(SUMMARIZE('#aTable','#aTable'[Name ],"TotalValue",[Total Value]),[TotalValue]>10))

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

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Two measures:

 

Total Value = SUM('#aTable'[Value])

Count Above 10 = 
COUNTROWS(FILTER(SUMMARIZE('#aTable','#aTable'[Name ],"TotalValue",[Total Value]),[TotalValue]>10))

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

Thanks a lot Greg, this was exactly what I wanted.

 

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.