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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
tlh
Frequent Visitor

Two lines, one chart

I'd pull my hair out if I had any left.....

 

I'm trying to have two lines on one chart. One line is expected burndown. The other is actual burndown. This is to display how we've used our budget over time vs how we should be using it. 

 

I have my expense ledger:

tlh_0-1621514535798.png

 

I have a daily date table:

tlh_1-1621514586024.png

 

And I have my budget table:

tlh_2-1621514629365.png

 

When I graph my expenses over time, it looks good. 

tlh_3-1621514688809.png

 

When I graph the budget over time, looks marvelous

tlh_4-1621514737140.png

 

When I put them together, nothing happens:

tlh_5-1621514827735.png

 

If I shift it into secondary values, same result. 

 

When I use the Date Table for the axis, I get this:

tlh_6-1621514929637.png

 

 

It seems that the dates in the date table can't/won't match up in the expense ledger. I do have them formatted the same way. 

 

Please help.

 

TLH

5 REPLIES 5
Anonymous
Not applicable

Could it be that you have a Date/Time field somewhere? If there is a time component, then it won't relate to a date column. It would be great if you can share a sample pbix so that we can dig further into it.

tlh
Frequent Visitor

Hello,

I checked and they are all date data type, however I did notice something interesting. I am not able to put this data on a regular table. I believe its because PowerBI doesn't recognize the expense date as the date data-type. 

tlh_0-1621522377068.png

 

When I put it on a report, it does not offer me the hierarchy. 

tlh_1-1621522552024.png

 

tlh_2-1621522597069.png

 

Is there something else that needs to happen to make this a date datatype?


I'm trying to sanitize it and then I'll upload. 

Jihwan_Kim
Super User
Super User

Hi, @tlh 

I am not sure if I understood your question correctly, but when putting the budget into the visualization, please try to create the measure like below in order to allocate amounts correctly per day.

Please check the below picture and the sample pbix file's link down below. It shows the measure that is for creating the allocation measure to know day-by-day-budget amount. Then, the granularity will be the same as the actual expense table, and those two data can be put into the same visualization.

 

Picture4.png

 

Budget Total =
SUM(Budget[Amount])
 
Budget Total Daily Allocation =
VAR dayscount =
CALCULATE (
COUNTROWS ( Dates ),
FILTER ( ALL ( Dates ), Dates[Year] = MAX ( Dates[Year] ) )
) - 1
VAR dailyamount = [Budget Total] / dayscount
VAR dailycumulate =
SUMX (
FILTER ( ALLSELECTED ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) ),
[Budget Total] / dayscount
) - dailyamount
RETURN
[Budget Total] - dailycumulate
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Hi Jihwan,

Thanks for sharing this. How was the date table created? I can't see the formulas. 

TLH

 

Hi, @tlh 

Thanks for the feedback.

I usually create dim-date table in Power Query Editor.

You can go into the Power Query Editor and can see the table. It is not imported but it was directly created inside the power query editor.

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.