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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Can I plot a graph when multiple criteria is available?

Hi There,

 

I would like to know whether it is possible to plot a graph when multiple parameters are available. I mean there is set of rows of data and it (legends) repeats for different SBUs and the data differs through years in column.

 

I would like to plot one graph in Power BI and provide a slicer option to select the SBU and graph should change the values accordingly. Is this possible in Power BI?

 

Below is the screenshot of the data.

9 Chart Summary Data from Frasca - Excel_2017-06-07_14-32-41.png

 

 

 

Regards,

PKR

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

If I understand you correctly, it could be done in Power BI. You need to transform your data first with the Pivot and Unpivot option in Query Editor. The transformed data should be like below.

 

SBU MonthYear Demand Plan $ Actual $ Prior Year $ Statistical KG
PG Jan-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Feb-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Mar-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Apr-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG May-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Jun-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Jul-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jan-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Feb-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Mar-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Apr-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI May-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jun-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jul-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 

 

For more details about how to transform data in Power BI Query Editor, you can refer to the following articles. Smiley Happy

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-common-query-tasks/

http://radacad.com/pivot-and-unpivot-with-power-bi

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

If I understand you correctly, it could be done in Power BI. You need to transform your data first with the Pivot and Unpivot option in Query Editor. The transformed data should be like below.

 

SBU MonthYear Demand Plan $ Actual $ Prior Year $ Statistical KG
PG Jan-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Feb-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Mar-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Apr-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG May-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Jun-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
PG Jul-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jan-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Feb-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Mar-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Apr-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI May-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jun-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 
MI Jul-16 $1,000,000  $1,000,000  $1,000,000  $1,000,000  $1,000,000 

 

For more details about how to transform data in Power BI Query Editor, you can refer to the following articles. Smiley Happy

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-common-query-tasks/

http://radacad.com/pivot-and-unpivot-with-power-bi

 

Regards

Anonymous
Not applicable

Hi @v-ljerr-msft,

 

Thanks for your response, its really helpful.

 

Regards,

PKR

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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