The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a table setup to view total profit of products by date (in this case per month).
As you can see, there are 4 columns. One for Date and the remaining 3 for the products (Drinks, Meals, Snacks).
What I am looking to do is also have a Date, Products, and Profit column representing the data above. Reason be is I have other table containing both date and product columns that I want to make relationships with.
Something similar to the below screenshot:
Solved! Go to Solution.
Figured it out. If I select the Drinks, Meals, and Snacks columns and unpivot them it does exactly what I need to.
Figured it out. If I select the Drinks, Meals, and Snacks columns and unpivot them it does exactly what I need to.