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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Espen1515
Advocate I
Advocate I

Aggregate line graph using three fields

Hi,

 

I am trying to create a line that follows progress on 43 purchase orders (POs) in a project. Each purchase order has a date for baseline, a date for forecast, and a date for actual achieved. I want to create a graph illustrating the trend in each of these. The plan will be updated continually until all POs are placed. I want a graph that looks more or less like this.

 

Graph.png

Instead og managing to get the graph I want, I used a work-around where I actually created three separate graphs that I placed above eachother, where all Axes are completely fixed. This is, of course, only a temporary remedy.

 

How can I create this graph without having to create three separate graphs? I currently have the three fields, where I am getting aggregates by creating a Quick Measure for running totals of each field. When I try to add a second field to the Values of any of the graphs, it stops show aggregate info, and instead looks like this:

Graph 2.png

Any tips would be great!

7 REPLIES 7
quentin_vigne
Solution Sage
Solution Sage

Hello @Espen1515

 

Are you using this type of visualisation ? Because on my version of PBI I can add as many measure I want to create graph Capture.PNG

 

If you are already using it, can you provide us a sample of your data (sample + table name + field name) so that we try to do what you are looking for ?

 

Quentin

How can I send sample data to you. When I try to respond I don't see an Add Attachment button. Only an Insert Link button that links to a URL. How can I send you data from my desktop?

Copy paste as a excel table 🙂

ActivityPackage numberActivity DescriptionPackage DescriptionBL FinishEarly FinishCurr act. Finish
JRBC50304BC503Issue InquiryAccoustic Cassettes / Walls29.03.2018  
JRBC50310BC503Purchase Agrmt issued to supplierAccoustic Cassettes / Walls07.06.2018  
JRBE53104BE531Issue InquiryPower, Instrument & Telecom Cables29.05.2018  
JRBE53110BE531Purchase Agrmt issued to supplierPower, Instrument & Telecom Cables07.08.2018  
JRBE53204BE532Issue InquiryGeneral Electric Bulk29.10.2018  
JRBE53210BE532Purchase Agrmt issued to supplierGeneral Electric Bulk07.01.2019  
JRBE53304BE533Issue InquiryCable Trays, Ladders & Accessories29.08.2018  
JRBE53310BE533Purchase Agrmt issued to supplierCable Trays, Ladders & Accessories07.11.2018  
JRBE53704BE537Issue InquiryMulti Cable Transits (MCT)29.09.2018  
JRBE53710BE537Purchase Agrmt issued to supplierMulti Cable Transits (MCT)08.12.2018  
JRBE54104BE541Issue InquiryJunction Boxes29.11.2018  
JRBE54110BE541Purchase Agrmt issued to supplierJunction Boxes07.02.2019  
JRBE54304BE543Issue InquiryHeat Tracing29.11.2018  
JRBE54310BE543Purchase Agrmt issued to supplierHeat Tracing07.02.2019  
JRBE54504BE545Issue InquiryCable Glands29.03.2019  
JRBE54510BE545Purchase Agrmt issued to supplierCable Glands07.06.2019  
JRBE54704BE547Issue InquiryPush Buttons and Socket Outlets29.03.2019  
JRBE54710BE547Purchase Agrmt issued to supplierPush Buttons and Socket Outlets07.06.2019  
JRBE55504BE555Issue InquiryLighting Fixtures29.03.2019  
JRBE55510BE555Purchase Agrmt issued to supplierLighting Fixtures07.06.2019  
JRBI68404BI684Issue InquiryInstr. Tubing and Compression Fittings01.03.2019  
JRBI68410BI684Purchase Agrmt issued to supplierInstr. Tubing and Compression Fittings10.05.2019  
JRBL74104BL741Issue InquiryCarbon Steel Pipe/Fittings/Flanges16.03.201816.03.201816.03.2018
JRBL74110BL741Purchase Agrmt issued to supplierCarbon Steel Pipe/Fittings/Flanges04.05.201809.05.2018 
JRBL74304BL743Issue InquiryDuplex/Super Duplex Pipe/Fittings/Flanges16.03.201816.03.201816.03.2018
JRBL74310BL743Purchase Agrmt issued to supplierDuplex/Super Duplex Pipe/Fittings/Flanges04.05.201809.05.2018 
JRBL74404BL744Issue Inquiry316 L & 6Mo Pipe/Fittings/Flanges16.03.201816.03.201816.03.2018
JRBL74410BL744Purchase Agrmt issued to supplier316 L & 6Mo Pipe/Fittings/Flanges04.05.201809.05.2018 
JRBL74704BL747Issue InquiryTitanium Pipe/Fittings/Flanges16.03.201816.03.201816.03.2018
JRBL74710BL747Purchase Agrmt issued to supplierTitanium Pipe/Fittings/Flanges04.05.201809.05.2018 
JRBL76904BL769Issue InquiryMechanical Joints17.04.201814.05.2018 
JRBL76910BL769Purchase Agrmt issued to supplierMechanical Joints01.06.201811.06.2018 
JRBL77504BL775Issue InquiryPipe Supports07.05.2018  
JRBL77510BL775Purchase Agrmt issued to supplierPipe Supports02.07.2018  
JRBL77704BL777Issue InquirySpring Support23.10.2018  
JRBL77710BL777Purchase Agrmt issued to supplierSpring Support14.12.2018  
JRBL78004BL780Issue InquiryFire Nuts, Elastopipe04.10.2018  
JRBL78010BL780Purchase Agrmt issued to supplierFire Nuts, Elastopipe08.12.2018  
JRBL78304BL783Issue InquiryPiping insulation29.09.2018  
JRBL78310BL783Purchase Agrmt issued to supplierPiping insulation08.12.2018  
JRBL78504BL785Issue InquiryBolts And Nuts13.06.2018  
JRBL78510BL785Purchase Agrmt issued to supplierBolts And Nuts06.08.2018  
JRBL79104BL791Issue InquiryGaskets And Rings13.06.2018  
JRBL79110BL791Purchase Agrmt issued to supplierGaskets And Rings06.08.2018  
JRBL79304BL793Issue InquiryFlow Coding - Piping/HVAC14.09.2019  
JRBL79310BL793Purchase Agrmt issued to supplierFlow Coding - Piping/HVAC04.09.2019  
JRBN80104BN801Issue InquiryStructural Steel Plates09.03.201809.03.201809.03.2018
JRBN80110BN801Purchase Agrmt issued to supplierStructural Steel Plates13.04.201818.04.201820.04.2018
JRBN80304BN803Issue InquiryRolled Profiles16.03.201816.03.201816.03.2018
JRBN80310BN803Purchase Agrmt issued to supplierRolled Profiles11.05.201818.05.2018 
JRBN80504BN805Issue InquirySeamless Tubulars16.03.201823.03.201823.03.2018
JRBN80510BN805Purchase Agrmt issued to supplierSeamless Tubulars11.05.201818.05.2018 
JRBN80704BN807Issue InquiryWelded Tubulars23.03.201823.03.201823.03.2018
JRBN80710BN807Purchase Agrmt issued to supplierWelded Tubulars15.05.201825.05.2018 
JRBN81004BN810Issue InquiryAluminium Handrail System04.07.201801.06.2018 
JRBN81010BN810Purchase Agrmt issued to supplierAluminium Handrail System31.08.2018  
JRBN81404BN814Issue InquiryAluminium Punchole Planks & Treads (Gratings)07.11.201808.09.2018 
JRBN81410BN814Purchase Agrmt issued to supplierAluminium Punchole Planks & Treads (Gratings)21.12.201822.10.2018 
JRBN81504BN815Issue InquiryAluminium Plates & Profiles07.11.201810.06.2018 
JRBN81510BN815Purchase Agrmt issued to supplierAluminium Plates & Profiles21.12.201824.07.2018 
JRBN81704BN817Issue InquiryStainless Steel Materials04.07.201820.05.2018 
JRBN81710BN817Purchase Agrmt issued to supplierStainless Steel Materials31.08.201817.07.2018 
JRBN81904BN819Issue InquirySteel Grating, Planks And Treads03.08.2018  
JRBN81910BN819Purchase Agrmt issued to supplierSteel Grating, Planks And Treads01.10.2018  
JRBN82104BN821Issue InquiryFibre Reinforced Polymer Grating and Treads21.12.201822.09.2018 
JRBN82110BN821Purchase Agrmt issued to supplierFibre Reinforced Polymer Grating and Treads15.02.201917.11.2018 
JRBN82804BN828Issue InquiryPaint01.03.2018  
JRBN82810BN828Purchase Agrmt issued to supplierPaint10.05.2018  
JRBN83004BN830Issue InquiryDeck Coating01.03.2018  
JRBN83010BN830Purchase Agrmt issued to supplierDeck Coating10.05.2018  
JRBS59004BS590Issue InquiryPassive Fire Proofing01.03.2018  
JRBS59010BS590Purchase Agrmt issued to supplierPassive Fire Proofing10.05.2018  
JRBT84004BT840Issue InquiryPAGA (Public Adress & Alarm) bulk material01.03.2019  
JRBT84010BT840Purchase Agrmt issued to supplierPAGA (Public Adress & Alarm) bulk material10.05.2019  
JRET38104ET381Issue InquiryTelecom Equipment01.03.2019  
JRET38110ET381Purchase Agrmt issued to supplierTelecom Equipment10.05.2019  
JRET38504ET385Issue InquiryUHF Radio and Paging System01.03.2019  
JRET38510ET385Purchase Agrmt issued to supplierUHF Radio and Paging System10.05.2019  
JRET38604ET386Issue InquiryEntertainment and data outlets01.03.2019  
JRET38610ET386Purchase Agrmt issued to supplierEntertainment and data outlets10.05.2019  
JRET38904ET389Issue InquiryCCTV01.03.2019  
JRET38910ET389Purchase Agrmt issued to supplierCCTV10.05.2019  
JRET39104ET391Issue InquiryPersonell Tracking and munstering appliances01.03.2019  
JRET39110ET391Purchase Agrmt issued to supplierPersonell Tracking and munstering appliances10.05.2019  
JRET39704ET397Issue InquiryWireless access network system01.03.2019  
JRET39710ET397Purchase Agrmt issued to supplierWireless access network system10.05.2019  
       

The graphs I showed before had a filter for "Issue Inquiry" on it.

Hi @Espen1515,

So I have tried replicate it with data you have provided.

 

I have managed to get "something" from the graph as it should look it. However, the main issue is that you need for legend one column which will contain all the statuses (BL, Curr act and Early finish). And as the axis you would need all the dates.

So you need to make columns where every PO will have the start date and all dates before it will be dismissed.

 

 

So you are makin a "cube" as it is called for making data models. In this case you can imagine it as basic graph with X, Y and Z coordinates (x,y,z)

 

So you would have Statuses as the legend (Z coordinate with value 1) X coordinate as the date value and Y coordinate as the count of POs involved.

 

In this raw data case you have it, but you are missing dates between which is making gaps in the graph.

 

What you are looking for is to make custom table, where you will collect all POs with Activity description you would like to have as first column. Second column would be the date and third column would be the value for legend.

 

So you would Have 12 month for each PO and status. In max case 12(months) * 3 (statuses) per PO.

 

I am sorry, but I am unable to make the formula for that custom table as I am struggling with similiar case myself 😞

Pavlous
Advocate II
Advocate II

Hi @Espen1515,

Can you please share some data so I would be able to replicate the solution?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors