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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BlueBandit93
Frequent Visitor

Creating two timelines, comparing actual versus forecasted

Hi all

 

I have a set of data with cash balances per day

 

I am looking to have two graphs (or one overlapping if possible) with the following:

 

1. Showing actual balances for a period specified with a slicer (SLICER 1), showing the forecasted amount for 2 months 

2. Showing the actual balance over time for the period specified in the slicer, being able to compare the actual to the forecasted for those two months (if it occurred in the past)

 

I created a measure to set the max date of the SLICER1 selected, and another measure for MaxDate + 60 days

 

However, I am unable to specifiy that the second graph should show the date after SLICER1 MaxDate

 

Is there a way to do this?

 

Thanks in advance!

2 REPLIES 2
BlueBandit93
Frequent Visitor

Hi amitchandak

 

Thank you for the help.

 

I added the measure and created an independent date table, however I am still missing one step i believe.

 

Data below:

Date1 = ADDCOLUMNS (CALENDAR(date(2022,01,01), date(2022,06,30))
,"Month Year", Format ([date], "MMM-YYYY")
,"Month Year sort", FORMAT([date], "YYYYMM")
,"Year", YEAR([Date])
, "Qtr Year", FORMAT([date],"YYYY/QQ")
)


Table called "Table"
with "Date" and "Balance" columns typed in

Two tables are linked as follows:

BlueBandit93_0-1660130851061.png

 

When adding a forecasted line graph:
X-Axis is Date1.[Date]
Y-Axis is Table.[Balance]
However, when moving the slicer, the peirods remain the same for the forecast and the actual

Is there a way to create one slicer 

Thank you!

amitchandak
Super User
Super User

@BlueBandit93 , If you want to display more dates on axis than what you have selected on slicer, then you need the slicer on an independent date table

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _min = maxx(allselected(Date1),Date1[Date])
var _max = _min +60
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.