Ploting of Graph IN PowerBI with different values and different Year

SkyandSea

New Member
Joined
Jul 12, 2019
Messages
2
Hi all,

Hi all,
Pretty to power BI charting and eager to learn and be involved in the community =)
First i will show what i did previously using powerquerry and pivot chart in excel 2016 and then i show where i am stuck in powerBI
Basically i have a simple table querry from SQL:

https://drive.google.com/open?id=1Qr-AdHMmBCBx4ZsuSw_YEKOWzz7hU6hM
Then after , using a pivottable i put the year and values in columns in pivottable field and the pivot chart shows what i want:

https://drive.google.com/open?id=1kAk_p8agZKAeI5DUbbWbIid3usFJGZ-P
*ignore the 2nd Y axis (bar chart) for the moment.

Using Get data in powerBI i querry the same table and i am able to get:

https://drive.google.com/open?id=1d9Fs_JrBUXw9kWpFvjb3-59KK0JR4-7F

I am able to get the a chart of the Average Price, Min Price, Max Price vs Day or Average price of 2017, 2018, 2019 vs Day but i like to have all 9 lines in the same chart ( as per excel)
I have been trying this for the past few hours but i cant seem to figure it out weather its by column hierachy etc. I have transform the Date into seperate 3 columns to be year, Month, Date so i could avoid the Date Hierachy but it doesnt work as well.

PS: Fecha is Date and Precio is Price. I do not need the Moving average as seen in my excel example for now but it would be good to have too.

Regards
Ang
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

SkyandSea

New Member
Joined
Jul 12, 2019
Messages
2
Just to make things clearer:
[FONT=&quot]Bascially with my source table below (4 columns sourcedata of Date, Price Min, Price Average, Price Max) ,
i like to plot Price vs Month/Day with 9 series of 2017Min, 2017Avg, 2017Max, 2018Min, 2018Avg, 2018Max, 2019Min, 2019Avg, 2019Max.[/FONT]

[FONT=&quot]Prefereably as i have in pivot chart too , a filter for Month.
[/FONT]
Thanks Lots
Hi all,

Hi all,
Pretty to power BI charting and eager to learn and be involved in the community =)
First i will show what i did previously using powerquerry and pivot chart in excel 2016 and then i show where i am stuck in powerBI
Basically i have a simple table querry from SQL:

https://drive.google.com/open?id=1Qr-AdHMmBCBx4ZsuSw_YEKOWzz7hU6hM
Then after , using a pivottable i put the year and values in columns in pivottable field and the pivot chart shows what i want:

https://drive.google.com/open?id=1kAk_p8agZKAeI5DUbbWbIid3usFJGZ-P
*ignore the 2nd Y axis (bar chart) for the moment.

Using Get data in powerBI i querry the same table and i am able to get:

https://drive.google.com/open?id=1d9Fs_JrBUXw9kWpFvjb3-59KK0JR4-7F

I am able to get the a chart of the Average Price, Min Price, Max Price vs Day or Average price of 2017, 2018, 2019 vs Day but i like to have all 9 lines in the same chart ( as per excel)
I have been trying this for the past few hours but i cant seem to figure it out weather its by column hierachy etc. I have transform the Date into seperate 3 columns to be year, Month, Date so i could avoid the Date Hierachy but it doesnt work as well.

PS: Fecha is Date and Precio is Price. I do not need the Moving average as seen in my excel example for now but it would be good to have too.

Regards
Ang
 

Watch MrExcel Video

Forum statistics

Threads
1,102,872
Messages
5,489,420
Members
407,687
Latest member
NeoSez

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top