Forum Discussion
anamika
6 years agoFrequent Visitor
Dax Query
Hi, I am faceing one issue with dax query which is written in DAX Query application. dax query is - EVALUATE ADDCOLUMNS ( SUMMARIZECOLUMNS ( 'Dim MWBEProgram'[MWBEProgramName], ...
anamika
6 years agoFrequent Visitor
My output is :
Is it possible to get only "STATUS"Column?
d_gosbell
6 years agoSuper User
anamika wrote:
Is it possible to get only "STATUS"Column?
You can, the question does not make a lot of sense to me as I can't see how this column will make sense on its own, but you could use SELECTCOLUMNS to just return the STATUS column
eg
EVALUATE
SELECTCOLUMNS(
ADDCOLUMNS (
SUMMARIZECOLUMNS (
'Dim MWBEProgram'[MWBEProgramName],
FILTER ( 'Fact Contract', 'Fact Contract'[MWBEProgramID] <> BLANK () ),
FILTER ( 'Fact Contract', 'Fact Contract'[ContractNumber] = "1234" )
)
,
"STATUS", IF ( 'Dim MWBEProgram'[MWBEProgramName] = "Non M/WBE", "NON M/WBE", "M/WBE" )
)
"STATUS", [Status]
)
- anamika6 years agoFrequent Visitor
Getting error with the given query.