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
JustinDoh1
Post Prodigy
Post Prodigy

Aggregate total number per month (on line graph)

I am sharing my Pbix file here.

I am trying to create a line graph that shows lump sum for each month's data (instead of showing individual dates in a month).

JustinDoh1_0-1631656606965.png

 

Expected output is something like this:

JustinDoh1_5-1631658728286.png

 

 

There is a solution provided earlier on this link.

Bottom is the solution:

JustinDoh1_1-1631658180288.png

 

But, I am not sure how I should apply.

First, do I have to create a new calendar table (like bottom) and link (create a relationship) to my date column ("IncidentDate")?

JustinDoh1_2-1631658274705.png

JustinDoh1_3-1631658361923.png

 

If I try to create a date hierarchy from existing date field ("IncidentDate"), it would not stretch to Year, Quarter, Month and Day.

It just stops at "IncidentDate".

JustinDoh1_4-1631658506491.png

 

So, this is where I am stuck.

Should I create a relationship with newly created calendar table or what do I do if my existing date field does not create hierarchy?

 

Thanks.

 

1 ACCEPTED SOLUTION

@ryan_mayu Thank you Ryan. I now understand the way to lump sum for month (using measure).

View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@JustinDoh1 

pls see the attachment below

 





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

Proud to be a Super User!




@ryan_mayu Thank you Ryan. I now understand the way to lump sum for month (using measure).

HotChilli
Super User
Super User

There are a few things in the provided model which don't look right.  

Put the Date from the 'Classic Date' table on the x-axis (instead of IncidentDate from the fact table).  That's why you created the date table.

Also  the relationship is not working correctly because IncidentDate is a datetime and the Date in 'Classic Date' is a date.  So create another column in vw_inc_incident which is a date version of IncidentDate and use that in the relationship.

Also the measure in the Values field of the visualisation is a sum of IncidentNumber.  Is this what you want to do?  Is IncidentNumber a financial amount or is it an Id of some sort?  If it is an Id you don't want to sum it.  So have a think about that too.

 

Good luck

@HotChilli Thank you for your help. I got a better understanding how to create relationship with same date type.

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.