Ben Niebuhr
New Member
- Joined
- Jan 31, 2012
- Messages
- 8
I have been working hard to implement PowerPivot in our processes, because I love the power it gives. I am quickly getting my internal costomers addicted to the quick results, but they are now asking for things that are taxing my skill. WHICH IS FANTASTIC!!
I usually work with hourly data, so the amount can pile up fast. I prefer to keep my tables tall and skinny (thanks for the post on this, Rob Collie). I have a table that looks like this:
DateTime Customer DataType DataValue
1 a Reading 438.22
1 a Rate 0.7622
1 b Reading 618.69
1 b Rate 0.1101
2 a Reading 526.41
2 a Rate 0.7869
2 b Reading 468.41
2 b Rate 0.5245
3 a Reading 701.62
3 a Rate 0.184
3 b Reading 931.5
3 b Rate 0.6168
(sorry, I can't figure out how to make the table all nice.)
I need to write a measure that will multiply each reading to its corresponding rate. I have solved this by writing SQL to create a 'short, fat' table making each data type a column, but this really limits my ability to pull the quantity of data I need.
Any help would be greatly appreciated.
Ben
ps. the datetime column is related to a date table that I use for all my filtering/slicing needs. (Another great tip from the PowerPivotPro)
I usually work with hourly data, so the amount can pile up fast. I prefer to keep my tables tall and skinny (thanks for the post on this, Rob Collie). I have a table that looks like this:
DateTime Customer DataType DataValue
1 a Reading 438.22
1 a Rate 0.7622
1 b Reading 618.69
1 b Rate 0.1101
2 a Reading 526.41
2 a Rate 0.7869
2 b Reading 468.41
2 b Rate 0.5245
3 a Reading 701.62
3 a Rate 0.184
3 b Reading 931.5
3 b Rate 0.6168
(sorry, I can't figure out how to make the table all nice.)
I need to write a measure that will multiply each reading to its corresponding rate. I have solved this by writing SQL to create a 'short, fat' table making each data type a column, but this really limits my ability to pull the quantity of data I need.
Any help would be greatly appreciated.
Ben
ps. the datetime column is related to a date table that I use for all my filtering/slicing needs. (Another great tip from the PowerPivotPro)