Forum Discussion
Can I plot a graph when multiple criteria is available?
- 9 years ago
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
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