Forum Discussion
zenton
Helper II
4 years agoCONCATENATEX contex issue
Hi, I need help with concatenatex measure.
Result in a table with LIMS Text ID gives correct result
When I remove LIMS Text ID I get incorrect result
The result I rerquire is the concatenation of all results Selenium, Zinc Copper.
Thanks Rodney
Calulations:
Limiting Contaminants Cont =
VAR VisualValues =
CALCULATETABLE (
ADDCOLUMNS (
SUMMARIZE (
Labware,
RMD_tlkp_AnolyteMasterList[strLegendName],
'2DateTable'[Date]
),
"@Grade", Labware[Grade]
),
ALLSELECTED ()
)
VAR MAXGRADE =
CALCULATE (
CONCATENATEX (
RMD_tlkp_AnolyteMasterList,
RMD_tlkp_AnolyteMasterList[strLegendName],
", "
),
FILTER ( RMD_tlkp_AnolyteMasterList, [Grade] = MAXX ( VisualValues, [@Grade] ) )
)
RETURN
MAXGRADE
VAR VisualValues =
CALCULATETABLE (
ADDCOLUMNS (
SUMMARIZE (
Labware,
RMD_tlkp_AnolyteMasterList[strLegendName],
'2DateTable'[Date]
),
"@Grade", Labware[Grade]
),
ALLSELECTED ()
)
VAR MAXGRADE =
CALCULATE (
CONCATENATEX (
RMD_tlkp_AnolyteMasterList,
RMD_tlkp_AnolyteMasterList[strLegendName],
", "
),
FILTER ( RMD_tlkp_AnolyteMasterList, [Grade] = MAXX ( VisualValues, [@Grade] ) )
)
RETURN
MAXGRADE
Grade =
SWITCH (
TRUE (),
'Labware'[CtA] < 3.5, "A",
'Labware'[CtB] < 3.5, "B",
'Labware'[CtC] < 3.5, "C",
'Labware'[CtD] < 3.5, "D",
"E"
)
SWITCH (
TRUE (),
'Labware'[CtA] < 3.5, "A",
'Labware'[CtB] < 3.5, "B",
'Labware'[CtC] < 3.5, "C",
'Labware'[CtD] < 3.5, "D",
"E"
)
Hi daXtreme
The underlying data and calciulations are to complex to share. I will close this discussion and try to ask question differently