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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
aw3w2
Regular Visitor

Counting (and graphing) dates over time

I am trying to count activation dates over time. The totals are correct, but I cannot get it to show activations per month.

 

I created a measurement- Site Activations, which works, however I cannot graph it over time. I think it is because there is not a time in the Activations table. I tried doing userelationship, but i cannot get it to work! Help!

 

Site Activations = CALCULATE(COUNT('Activation Report'[Date First Activated]),
                                    USERELATIONSHIP('Activation Report'[Date First Activated],'Calendar Table'[Date]))

 

aw3w2_1-1772575526751.png

 

 

aw3w2_0-1772575219204.png

Site Activations Measure is from Activations Table and Month/Year are from Calendar Table.

aw3w2_2-1772575855314.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @aw3w2 

If  you're seeing a blank period that is most likely because your calendar table does not cover the dates in your fact table or you have a data type mismatch (datetime vs date). The column format in the designer does not matter but ensure you're using the same data types. You should be able to successfully do that in the query editor.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @aw3w2 

If  you're seeing a blank period that is most likely because your calendar table does not cover the dates in your fact table or you have a data type mismatch (datetime vs date). The column format in the designer does not matter but ensure you're using the same data types. You should be able to successfully do that in the query editor.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

What do you mean by " there is not a time in the Activations table."?  In Power Query, ensure that that data type of the Date first activated column is Date.  Also, if there is already a Many to One relationship from the Date first activated column to the Date column of the Calendar table, then this simple measure should work

Measure = COUNT('Activation Report'[Date First Activated])

If it does not help, then share the download link of the PBI file.


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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.