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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
waldnerr
Helper I
Helper I

Display amount based on multiple date columns on X axis (MM/YYYY) in line chart

Hi,

 

i have a fact table, where columns for "Final Acceptance Date Best Case" and "Final Acceptance Date Worst Case" are included per project and evaluation month:

 

Evaulation MonthProjectFinal Acceptance Date Best CaseFinal Acceptance Date Worst Case (Calculated Column)Total Contract Value
10/23A31.12.202301.04.2024500000
10/23B10.10.202310.10.2023300000
10/23C15.11.202314.12.2023200000
09/23A31.12.202331.12.2023450000
09/23B10.10.202310.10.2023250000
09/23C15.11.20230112.2023200000

 

I would like to create a line chart based on the "Evaluation Month" 10/23, where i show month/year on the X axyis and two lines for Total Contract Value (TCV) on the Y axis - one based on "Final Acceptance Best Case" and one on "Final Acceptance Worst Case":

 

waldnerr_0-1696931674972.png

 

I would appreachiate, if you could give me feedback, how to acieve the desired result.

 

Thank you,

Best regards,

Reinhard

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

 

Step 0: I unpivot 2 columns and rename a title of the column in Power Query Editor.

mickey64_0-1696943300761.png

mickey64_1-1696943343342.pngmickey64_2-1696943367312.png

 

Step 1: I make a calendar table and add a relationship in Power BI Desktop.

mickey64_0-1696942941458.png

mickey64_1-1696942979851.png

Step 2: I make a measure.

    TCV TOTALYTD = TOTALYTD(SUM(DATA[Total Contract Value]),'Calendar'[Date],"9/30")

 

Step 3: I make a graph and 2 slicers.

mickey64_2-1696943100643.png

 

View solution in original post

2 REPLIES 2
waldnerr
Helper I
Helper I

Thank you very much for the well described solution!

Best regards,

Reinhard

mickey64
Super User
Super User

For your reference.

 

Step 0: I unpivot 2 columns and rename a title of the column in Power Query Editor.

mickey64_0-1696943300761.png

mickey64_1-1696943343342.pngmickey64_2-1696943367312.png

 

Step 1: I make a calendar table and add a relationship in Power BI Desktop.

mickey64_0-1696942941458.png

mickey64_1-1696942979851.png

Step 2: I make a measure.

    TCV TOTALYTD = TOTALYTD(SUM(DATA[Total Contract Value]),'Calendar'[Date],"9/30")

 

Step 3: I make a graph and 2 slicers.

mickey64_2-1696943100643.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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