Forum Discussion
How do i make a table to move data from the rows into new columns?
Sorry - I'm a complete novice and confused by DAX and power query teminology 😬
The control lot number is highly variable, and test dependent - is there a way to make the caluclation work without having to specifiy the lot number "193201" for example? I have over 200 "TEST" items for which i need to get the calculation to work againist different lot numbers.
I figured if i could make a new table with each lot number CV side by side (with one row per TEST), it would be simpler!
mitchemmonkey Right, so, put your Test column in a slicer visual. Put your Control Lot in another slicer visual where you can multi-select. Then you can create a Card visual and use the following measure:
RESULT Measure =
VAR __Test = MAX('Table'[Test])
VAR __Lots = DISTINCT('Table'[Control Lot])
VAR __Table = FILTER('Table',[Test] = __Test && [Control Lot] IN __Lots)
RETURN
PRODUCTX(__Table,[CV])
So this would allow you to multiply all of the CV values for the specific Test and Control Lots chosen in the slicers for example. Would need more specifics around all of the types of calculations you need to do in order to provide more specific guidance.
I just noticed your table is a calculated table, what does the original data look like?