Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.