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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

count ID sum of views for that Id is over 1000

Hi,

 

I would like to sum article page views for each article id that is in the data for example below and then count those IDs that have a combined page view total over 1000. Could anyone help? It is to put into a bar graph so needs to be a measure rather than a table as when i sum the page views in a table it works.

 

So i want COUNT article id if the sum of page views for that ID is over 1000

 

ID       Views

234     345

234     667

534     234

534     4536

45       87

45       3

 

 

Thanks,

1 ACCEPTED SOLUTION

@Anonymous missed a parenthesis

 

try this

 

Count over 100 = 
COUNTX (
 suMMARIZE ( Table, Table[Id], "__views", SUM ( Table[View] ) ),
 IF ( [__views] >= 1000, 1 )
)

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

8 REPLIES 8
parry2k
Super User
Super User

@Anonymous try this

 

Count over 100 = 
COUNTX (
 suMMARIZE ( Table, Table[Id], "__views", SUM ( Table[View] ),
 IF ( [__views] >= 1000, 1 )
)

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks @parry2k , it just doesnt like the end bit after IF 

 

 

 IF ( [__views] >= 1000, 1 ))

 

 

 

I am trying to rebuild this from QLIK so the qlik expression is  this is at all helpful- 

 

17-06-2020 16-15-51.png 

 
ryan_mayu
Super User
Super User

@Anonymous 

 

Is this what you want?

Measure 2 = 
VAR SUMMARY=CALCULATE(SUM('Table (2)'[VIEWS]),ALLEXCEPT('Table (2)','Table (2)'[ID]))
RETURN IF(SUMMARY>1000,SUMMARY,BLANK())

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu thanks, this is counting all the article page views though rather than by ID 😞 

@Anonymous missed a parenthesis

 

try this

 

Count over 100 = 
COUNTX (
 suMMARIZE ( Table, Table[Id], "__views", SUM ( Table[View] ) ),
 IF ( [__views] >= 1000, 1 )
)

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  Thank you!!

@Anonymous ,

Measure =
VAR Count=CALCULATE(COUNT('Table'[VIEWS]),ALLEXCEPT('Table','Table'[ID]))
RETURN IF(Count>1000,Count,"-")

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24

 

Thanks, it doesnt accpet the count but after VAR though. It is giving me a red line under it.

 

Thanks,

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.