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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
moei
Frequent Visitor

Counting rows/entries pr date not working.. why?

This is my data set (about 100000rows) I want to count how many files are created each day.  

moei_0-1618565839518.png

 

I havde created a Calender (Kalender = CALENDAR(MIN('Query'[CreatedDate]),MAX('Query'[CreatedDate])))

and set up the following relation. Date -> CreatedDate (1:*)

moei_1-1618565839521.png

My measure for counting is Count = DISTINCTCOUNT('Query'[CourseElementId])

The result is not exactly impressive… 🙂 im obviously not doing it right. But what am I not getting?

moei_2-1618565839527.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @moei,

Perhaps you can try to use the following measure formula if it works on your side:

 

Count =
CALCULATE (
    COUNTROWS ( VALUES ( 'Query'[CourseElementId] ) ),
    VALUES ( Calendar[Date] )
)

 

If the above not help, can you please share some dummy data to test?

How to Get Your Question Answered Quickly
Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @moei,

Perhaps you can try to use the following measure formula if it works on your side:

 

Count =
CALCULATE (
    COUNTROWS ( VALUES ( 'Query'[CourseElementId] ) ),
    VALUES ( Calendar[Date] )
)

 

If the above not help, can you please share some dummy data to test?

How to Get Your Question Answered Quickly
Regards,

Xiaoxin Sheng

You solution worked! Thank you very much 😄 

Thank you very much for your suggestion. I will try this asap.

Ashish_Mathur
Super User
Super User

Hi,

I cannot spot the mistake in what ou have done.  Share the link from where i can download your PBI file.


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

"My measure "  - you either need to use a calcuated column, or change your measure formula.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors