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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lucie_raboch
Helper I
Helper I

Line chart with two different dates

Hi all,

I have the following data sets:

 

Date - date format

CP_Date - date format

Name - string

Metric - integer number

 

And using Date, Name and Metric I have created the below Line chart, nothing special.

 

lucie_raboch_0-1718699780638.png

 

Now I need to include CP_DATE into line chart, so the chart would look like this:

lucie_raboch_1-1718699965808.png

 

It is possible to create points or vertical lines based on CP_DATE? So basicaly we will have two different dates in line chart?

Thank you so much for your help.

 

I'm attaching pbx file:

https://drive.google.com/file/d/1gev9T2o3TtpKpcxUfqRMjqSSAkyB1sF4/view?usp=drive_link

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

lucie_raboch
Helper I
Helper I

this is solution, thank you

View solution in original post

8 REPLIES 8
lucie_raboch
Helper I
Helper I

this is solution, thank you

lbendlin
Super User
Super User

like that?

lbendlin_1-1719592658753.png

 

lucie_raboch
Helper I
Helper I

Hello,

Any update on this.

lucie_raboch
Helper I
Helper I

hi v-vogua,

CP_DATE is not static, I have attached a pbi file in the previous post so you can see what I need, thank you

Your CP Date examples are outside of the range of the regular dates.

lbendlin_0-1719071206898.png

 

v-yohua-msft
Community Support
Community Support

Hi, @lucie_raboch 

Create a view and find the Reference line in format

vyohuamsft_1-1718764646023.png

 

Here is my preview:

vyohuamsft_0-1718764379233.png

For more details about it, you can check the link below:

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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!

December 2024

A Year in Review - December 2024

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