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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mick_lowe
Regular Visitor

Creating Cumulative Graphs

Hi All

I've looked through the posts and although similar questions have been asked I can't find one that matches what I'm trying to do but sorry if this has been asked in a different way.

 

I want to create a visual showing 2 different line graphs pulling data from 2 different tables, I can get them working individually and I suspect the problem is down to the "Date" fields.

 

My data looks like this:

mick_lowe_0-1783504112382.png

 

One table is for time spent working on a job, the other is invoices against that job and as you can see the dates don't match.

If I create a graph using NDate from table A the time graph looks to be correct but when I ad the billing totals I just get a straight line across the graph:

mick_lowe_1-1783504294793.png

I'm guessing this is because its trying to plot the invoice amount against the time worked date, is there any way to get this to work or do I need to go back to 2 seperate visuals?

 

Thanks

Mick

 

1 ACCEPTED SOLUTION

Did you use the date column from the calendar table in your visual and relationship is one to many single direction from the dim to fact tables? Also, since you want the cumulative (from the very first date), apply FILTER to the whole table instead of to just a specific column.

danextian_0-1783938473757.png

danextian_1-1783938551964.png

Please see the attached pbix. 

 





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

12 REPLIES 12
v-kathullac
Community Support
Community Support

Thankyou @rajendraongole1 , @johnt75 , @danextian  for Addressing the issue.

 

Hi  @mick_lowe  ,

Thank you for reaching out to Microsoft Fabric Community Forum,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

Regards,

Chaithanya

Hi @v-kathullac

 

I haven't got this working but can see from see from the post by @danextian how it should work so I've marked as the solution.

 

Thanks

Mick

v-kathullac
Community Support
Community Support

Hi @mick_lowe ,

 

Thank you for reaching out to Microsoft Fabric Community Forum,

 

  • The query fails with the error: "The query has exceeded the available resources." The error indicates that the query exceeded the available memory, CPU, or capacity limits.
  • The issue may be related to Large dataset or high data volume, Complex DAX measures or Power Query transformations, Inefficient data model or expensive query execution,Power BI/Fabric capacity or resource limitations.

Kindly check the above debug steps to resolve the Exceed issue.Let us know if you need any further assistance?

 

Thanks,

Chaithanya.

v-kathullac
Community Support
Community Support

Thankyou @rajendraongole1 , @johnt75  for Addressing the issue.

 

Hi  @mick_lowe  ,

Thank you for reaching out to Microsoft Fabric Community Forum,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

Regards,

Chaithanya

Hi @rajendraongole1 @johnt75 @v-kathullac 

Thanks for all the replies, this is a bit of a "pet project" and not my full time job, so sorry for not coming back to you sooner.

 

I couldn't get this to work using the suggetions, what I ended up doing was creating 2 fields on each table:

 
Total Time Spent =
SUM('zprojects'[timespent])
And:
Cumulative Time Spent =
CALCULATE(
    [Total Time Spent],
    FILTER(
        ALL('Calendar'[Date]),
        'Calendar'[Date] <= MAX('Calendar'[Date])
    )
)
This works for some:
mick_lowe_0-1783934277435.png

 

but not others so I'm currently trying to work out why:
mick_lowe_1-1783934335882.png

 

Did you use the date column from the calendar table in your visual and relationship is one to many single direction from the dim to fact tables? Also, since you want the cumulative (from the very first date), apply FILTER to the whole table instead of to just a specific column.

danextian_0-1783938473757.png

danextian_1-1783938551964.png

Please see the attached pbix. 

 





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.

Thanks Dane, I tried this but this returns "query has exceeded the available resources".

johnt75
Super User
Super User

Create a date table and mark it as a date table. There are lots of videos or tools you can use to do this.

Link your date table to both of your existing tables and use columns from the date table on your charts.

Thanks @johnt75 do I need to move the measure to that table for this to work?

 

Mick

Hi @mick_lowe  - No, the measure doesn't need to be moved. A measure can live in any table ,

 

The key thing is to use the Date column from the Calendar table on the visual and ensure both fact tables have active relationships to it. Moving measures to a dedicated Measures table is purely for organization and has no impact on the result.

Hope this helps.





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

Proud to be a Super User!





This is correct about where measures can live but I would disagree about having to use the Date column of the Calendar table on the visual.

The Date column is used for the relationships, but any column from the Calendar table can be used for visuals, e.g. Year Month. The column used will likely change from visual to visual, depending on the granularity that you want to show.

Hi @johnt75 - Good point- thanks for the clarification. I should have said to use a column from the Calendar table rather than specifically the Date column.

The appropriate column depends on the level of detail you want to display (e.g., Date, Year Month, Quarter, or Year). The key is that the visual uses the Calendar table so both fact tables are filtered consistently through the date relationships.

I hope this clarifies.

 





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

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors