2
Documentation Using the DAX Editor Using the DAX editor for DAX queries 1. Press Ctrl+N to create a new file. Choose Text file. 2. Choose Save As. Change the filter from Text files to All files, and save the file with a .dax file extension. The file is now a DAX file and can be used for DAX queries. 3. optional To get IntelliSense for tables, columns, and members: Click inside the DAX file and then press F4 to show the property grid. Enter the database name and server name in the property grid. Using the DAX editor to edit measures in tabular models 1. Create a tabular model. Save the BIM file. 2. From the Model menu, select Create DAX file for model. This adds a .dax file to the tabular model project. 3. Doubleclick to open the DAX file. If you want IntelliSense for column names: Click inside the DAX file and then press F4 to show the property grid. Enter the workspace database name (copy/paste from bim file properties) and workspace database server name in the property grid. 4. Edit measures in the .dax file. 5. To save your new or modified measures to the .bim file: Save and close the .bim file. Click the DAX file to activate. Select DAX>Save Measures to BIM file. Reload the BIM file. New measures appear in the far left corner of the measure grid. 6. To get measures from the BIM file to the DAX file: Save the .bim file. Click the DAX file to activate. Select DAX>Get Measures from BIM file. The contents of the DAX file are overwritten with the measures from the BIM file. This will unfortunately overwrite any comments you have made in the DAX file. Last edited Dec 6, 2011 at 9:14 PM by cathyk, version 1 COMMENTS PAPutzback Apr 29, 2014 at 2:03 PM I have a *.dax file and the properties have two categories, General and Misc. Under general I have a greyed out connection string that I can't edit and under Misc I have two properties with no name that can't be edited and both already say Value cannot be null. Parameter name:input But maybe this is due to how I created the DAX file. In my model menu there is no option "Create DAX file for model" wilsonch Aug 15, 2013 at 11:10 PM Well, something is working for me in the following way and sense: I begin to type a word; I hit "ctrlspace"; a list of options pops up, including (highlighted) a completion of what I started to type. "Ctrlspace" is mentioned in the writeup on the home page: "IntelliSense support for keywords, functions, columns, and measures. Press Ctrl+Space to show IntelliSense." Ditto for Autocomplete. I am continuing to play around with it. ToddChitt Feb 19, 2013 at 6:48 PM Why does the operation ins step 2 of the instructions ("From the Model menu, select Create DAX file for model.") only create ONE measure. Would it not read ALL the measures from ALL the tables? CodePlex Project Hosting for Open Source Software Register Sign In Search all projects DAX Editor for SQL Server HOME SOURCE CODE DOWNLOADS DOCUMENTATION DISCUSSIONS ISSUES PEOPLE LICENSE Page Info Change History (all pages) Follow (69) Subscribe Search Wiki & Documentation SYSTEM REQUIREMENTS There are currently no defined requirements.

DAX Editor for SQL Server

Embed Size (px)

DESCRIPTION

- Documentation

Citation preview

  • 9/6/2015 DAX Editor for SQL Server - Documentation

    http://daxeditor.codeplex.com/wikipage?title=Using%20the%20DAX%20Editor&referringTitle=Documentation 1/2

    Documentation UsingtheDAXEditor

    UsingtheDAXeditorforDAXqueries

    1.PressCtrl+Ntocreateanewfile.ChooseTextfile.2.ChooseSaveAs.ChangethefilterfromTextfilestoAllfiles,andsavethefilewitha.daxfileextension.ThefileisnowaDAXfileandcanbeusedforDAXqueries.3.optionalTogetIntelliSensefortables,columns,andmembers:

    ClickinsidetheDAXfileandthenpressF4toshowthepropertygrid.Enterthedatabasenameandservernameinthepropertygrid.

    UsingtheDAXeditortoeditmeasuresintabularmodels

    1.Createatabularmodel.SavetheBIMfile.2.FromtheModelmenu,selectCreateDAXfileformodel.Thisaddsa.daxfiletothetabularmodelproject.3.DoubleclicktoopentheDAXfile.IfyouwantIntelliSenseforcolumnnames:

    ClickinsidetheDAXfileandthenpressF4toshowthepropertygrid.Entertheworkspacedatabasename(copy/pastefrombimfileproperties)andworkspacedatabaseservernameinthepropertygrid.

    4.Editmeasuresinthe.daxfile.5.Tosaveyournewormodifiedmeasurestothe.bimfile:

    Saveandclosethe.bimfile.ClicktheDAXfiletoactivate.SelectDAX>SaveMeasurestoBIMfile.ReloadtheBIMfile.Newmeasuresappearinthefarleftcornerofthemeasuregrid.

    6.TogetmeasuresfromtheBIMfiletotheDAXfile:

    Savethe.bimfile.ClicktheDAXfiletoactivate.SelectDAX>GetMeasuresfromBIMfile.ThecontentsoftheDAXfileareoverwrittenwiththemeasuresfromtheBIMfile.ThiswillunfortunatelyoverwriteanycommentsyouhavemadeintheDAXfile.

    LasteditedDec6,2011at9:14PMbycathyk,version1

    COMMENTS

    PAPutzbackApr29,2014at2:03PMIhavea*.daxfileandthepropertieshavetwocategories,GeneralandMisc.UndergeneralIhaveagreyedoutconnectionstringthatIcan'teditandunderMiscIhavetwopropertieswithnonamethatcan'tbeeditedandbothalreadysayValuecannotbenull.Parametername:inputButmaybethisisduetohowIcreatedtheDAXfile.Inmymodelmenuthereisnooption"CreateDAXfileformodel"

    wilsonchAug15,2013at11:10PMWell,somethingisworkingformeinthefollowingwayandsense:IbegintotypeawordIhit"ctrlspace"alistofoptionspopsup,including(highlighted)acompletionofwhatIstartedtotype."Ctrlspace"ismentionedinthewriteuponthehomepage:"IntelliSensesupportforkeywords,functions,columns,andmeasures.PressCtrl+SpacetoshowIntelliSense."DittoforAutocomplete.Iamcontinuingtoplayaroundwithit.

    ToddChittFeb19,2013at6:48PMWhydoestheoperationinsstep2oftheinstructions("FromtheModelmenu,selectCreateDAXfileformodel.")onlycreateONEmeasure.WoulditnotreadALLthemeasuresfromALLthetables?

    CodePlex Project Hosting for Open Source Software Register SignIn Searchallprojects

    DAX Editor for SQL Server

    HOME SOURCECODE DOWNLOADS DOCUMENTATION DISCUSSIONS ISSUES PEOPLE LICENSE

    PageInfo ChangeHistory(allpages) Follow(69) Subscribe

    SearchWiki&Documentation

    SYSTEMREQUIREMENTS

    Therearecurrentlynodefinedrequirements.

  • 9/6/2015 DAX Editor for SQL Server - Documentation

    http://daxeditor.codeplex.com/wikipage?title=Using%20the%20DAX%20Editor&referringTitle=Documentation 2/2

    qiyuefFeb12,2013at11:06PMintellisensedoesn'tworkformeeither

    ChallenFeb28,2012at1:52AMyes,IhavethesameissueasEricLeBouffon,Idothesameas"Entertheworkspacedatabasename(copy/pastefrombimfileproperties)andworkspacedatabaseservernameinthepropertygrid"soIthinkthedatabaseandservernameiscorrect,whythereisnointellisense?cananybodygivesomecommenttothisissue?thanksinadvance.ChallenFu

    EricLeBouffonFeb21,2012at4:27PMNointellisense?IenteredbothDatabaseNameandServerNameasindicatedinstep3butcan'tseeanyintellisensearound...Asatest,Icreatedaninvalidmeasureandnowarningofanysort...AmImissingsomething?

    Signintoaddacomment

    20062015Microsoft GetHelp PrivacyStatement TermsofUse CodeofConduct AdvertiseWithUs Version5.26.2015.21018