Forum Discussion

smpa01's avatar
smpa01
Icon for Community Champion rankCommunity Champion
3 years ago
Solved

Minify DAX

My current code is like this   EVALUATE VAR base ={1} RETURN base   Is there any tool available that kills all the code line brakes.   EVALUATE VAR base = {1} RETURN base   I am w...
  • d_gosbell's avatar
    3 years ago

    You don't need to minify anything since you can use multi-line string variables in Power Query
    eg

    let
        SourceQuery = "
    EVALUATE
    'Product Category'",
        result = AnalysisServices.Database("localhost\tab19", "Adventure Works", [Implementation="2.0", Query=SourceQuery])
    in
        result