Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Looking to create an line graph with income, cost of sales and profit each as a line by month
I've got my income and cost of sales as measures and columns per user vega
Income = IF( Table1[Account] >= 4000 && Table1[Account] <= 4999, Table1[Amount], BLANK() )
CostOfSale = IF( Table1[Account] >= 5000 && Table1[Account] <= 5999, Table1[Amount], BLANK() )
-----------------------------------
Income Measure = CALCULATE( SUM(Table1[Amount]), Table1[Account] >= 4000 && Table1[Account] <= 4999, VALUES(Table1[Account]) )
CostOfSale Measure = CALCULATE( SUM(Table1[Amount]), Table1[Account] >= 5000 && Table1[Account] <= 5999, VALUES(Table1[Account]) )
That being said, I would have to create another measure for income - costofsale = profit. It would also be nice to have profit displayed as gross margin so probably separate calc for that gross sales / gross profit = gross margin I think.
But even getting the income to overlay the cost of goods on a line graph I can't seem to figure.
help 🙂
Solved! Go to Solution.
Ha, figured it! I must have been overlooking something simple.
Made a new line graph showing values from colums of income and costofsales, as well I made a new column for income - costofsales for profit. Then used the Axis as month.
Voila!
thanks ;-0
Ha, figured it! I must have been overlooking something simple.
Made a new line graph showing values from colums of income and costofsales, as well I made a new column for income - costofsales for profit. Then used the Axis as month.
Voila!
thanks ;-0
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |