Forum Discussion
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.
Regards,
PKR
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. :smileyhappy:
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-common-query-tasks/
http://radacad.com/pivot-and-unpivot-with-power-bi
Regards
2 Replies
- v-ljerr-msftMicrosoft 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. :smileyhappy:
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-common-query-tasks/
http://radacad.com/pivot-and-unpivot-with-power-bi
Regards
- AnonymousNot applicable