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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FOXYBARK
Helper II
Helper II

Count how many times the max daily was hit

I am trying to get the max daily hit count metric. In the example, The max daily count is 14. How many times was this 14 hit? It was 3 times. The number 3 is what I'm trying to dynamically get. Regardless of filters applied, I should always get the max daily hit count. 

 

Note: some tables have been removed from the dataset for privacy reasons. 

Note: I started something trying to get the answer in the [Data] table. It doesn't work because the max daily hit count is not dynamic. 

 

Thanks, F

 

FOXYBARK_0-1657310841528.png

I would attach the wb but not seeing an attach button. 

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

Hi @FOXYBARK ,

 

I have built a data sample for test:

Eyelyn9_0-1657599256423.png

Please try the following measures:

Daily Sum = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
Daily Maximum = MAXX(ALL('Table'),[Daily Sum])
Count of Same Daily Maximum = 
var _t= SUMMARIZE('Table','Table'[Date], "Sum",[Daily Sum])
return COUNTROWS(FILTER(_t,[Sum]=[Daily Maximum]))

Output:

Eyelyn9_1-1657599795147.png

 

 

Best Regards,
Eyelyn Qin
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

6 REPLIES 6
v-eqin-msft
Community Support
Community Support

Hi @FOXYBARK ,

 

I have built a data sample for test:

Eyelyn9_0-1657599256423.png

Please try the following measures:

Daily Sum = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
Daily Maximum = MAXX(ALL('Table'),[Daily Sum])
Count of Same Daily Maximum = 
var _t= SUMMARIZE('Table','Table'[Date], "Sum",[Daily Sum])
return COUNTROWS(FILTER(_t,[Sum]=[Daily Maximum]))

Output:

Eyelyn9_1-1657599795147.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HOw do I attach a file?

Thank you Eyelyn. 

I think you're on the right track. I'm reattaching your sample workbook where you have your working example. I started to recreate your effort.  The "values" should be more like user ids. I have added a tbl. Can you direct with my example table?

F

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

How do I attach a file?

Hi,

Upload the workbook to OneDrive/Google Drive and share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.