Forum Discussion
Need help for generating raw wise difference from column using DAX or power query
- 1 year ago
Hi again
Please try ask the right question first time, because it is a bit annoying having to answer twice 😀😀😀
Click here to download a solution ftom one drive
This method will work for 25 machines or more
Please will you now click [thumbs up] and [accept solutoon button]. Thank you !
How it works ...
For the date correctly
Select the Date and Shift columns, then Transform> Unpiciot>Unpivot other columns
Sort by Machine, Date and Shift
Add an index column from 0 incrementing by 1
Get the machine and reading for the previous row
Change reading to numeric data types
and add a conditional columnRenove the unneeded columns and change the usage ro a numeric data type
Draw your graph
There are lots of ways to solve this problem but try this ...
Click here to download a solution from Onedrive
How it works ...
Change bakue data types to numeric
Change the date to a proper date.
Sort by date and shift.
Add Index colum
Use the index to get the previous meter reading for A.
Then use the index to get the previous meter reading for B.
Calculate the usage
Draw the graph
Please click thumbs up because I have tried to help.
Then click [accept solution] if it works.
Many thanks !