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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Plot two dataset from two different on the same axis

Hej,

 

I wish to plot two different dataset from two different date interval on the same graph. With date on the axis if possible.

Rationale: In order to compare two different data from two date, for example, a stock price from  Aug to Sep 2015 against stock price from Mar-May 2019. The date interval might now be exactly the same length.

 

Currently implemented solution: Shift the date manually using "DATEADD" command, to shift date.

I am wondering if there are any easier method?

 

Best,

 

3 REPLIES 3
amitchandak
Super User
Super User

Use Summarize table

 

Union data Sets= union(SUMMARIZE(Sales,Sales[Brand],"Col1",sum(Sales[Sales]),"Col2",sum(Sales[COGS]),"sort",COUNTROWS(Sales)),DATATABLE("Area",STRING,"Col1",DOUBLE,"Value",DOUBLE,"Clo2",DOUBLE
,{
{"    ",0.0,0.0,10000}
}
) )

I used DATATABLE just to showcase the same datatype is needed. You can use the second SUMMARIZE table too.

 

Anonymous
Not applicable

Hej thank you for Swift answer,

 

I think we understand two different things, my data is a time series of values, it might not have an equal length.

However, what I want is to have a plot of two or more time series, from different starting point in time (May 2016 or Jan 2017) and have them on top of each other to compare the development of the values between the time series.

 

Med Venlig Hilsen,

 

Hi @Anonymous ,

Can you please share a dummy file? If you can't, please share some sample data and your expected results that will make us understand clearly about your requirement.

 

Please see this post regarding How to Get Your Question Answered Quickly: 

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.