├── .gitattributes ├── .gitignore ├── .openpublishing.publish.config.json ├── .openpublishing.redirection.json ├── CONTRIBUTING.md ├── LICENSE ├── LICENSE-CODE ├── README.md ├── SECURITY.md ├── ThirdPartyNotices.md └── query-languages ├── dax ├── abs-function-dax.md ├── accrint-function-dax.md ├── accrintm-function-dax.md ├── acos-function-dax.md ├── acosh-function-dax.md ├── acot-function-dax.md ├── acoth-function-dax.md ├── addcolumns-function-dax.md ├── addmissingitems-function-dax.md ├── aggregation-functions-dax.md ├── all-function-dax.md ├── allcrossfiltered-function-dax.md ├── allexcept-function-dax.md ├── allnoblankrow-function-dax.md ├── allselected-function-dax.md ├── allselectedapply-function-dax.md ├── allselectedremove-function-dax.md ├── alwaysapply-function-dax.md ├── amordegrc-function-dax.md ├── amorlinc-function-dax.md ├── and-function-dax.md ├── approximate-distinctcount-function-dax.md ├── asin-function-dax.md ├── asinh-function-dax.md ├── atan-function-dax.md ├── atanh-function-dax.md ├── average-function-dax.md ├── averagea-function-dax.md ├── averagex-function-dax.md ├── best-practices │ ├── dax-avoid-avoid-filter-as-filter-argument.md │ ├── dax-avoid-converting-blank.md │ ├── dax-column-measure-references.md │ ├── dax-countrows.md │ ├── dax-divide-function-operator.md │ ├── dax-error-functions.md │ ├── dax-selectedvalue.md │ ├── dax-understand-orderby.md │ ├── dax-variables.md │ └── media │ │ ├── dax-avoid-converting-blank │ │ ├── table-visual-good.png │ │ └── table-visual-poor.png │ │ └── dax-understand-orderby │ │ └── offset-by-calendar-year.png ├── beta-dist-function-dax.md ├── beta-inv-function-dax.md ├── bitand-function-dax.md ├── bitlshift-function-dax.md ├── bitor-function-dax.md ├── bitrshift-function-dax.md ├── bitxor-function-dax.md ├── blank-function-dax.md ├── breadcrumb │ └── toc.yml ├── calculate-function-dax.md ├── calculatetable-function-dax.md ├── calendar-function-dax.md ├── calendarauto-function-dax.md ├── ceiling-function-dax.md ├── chisq-dist-function-dax.md ├── chisq-dist-rt-function-dax.md ├── chisq-inv-function-dax.md ├── chisq-inv-rt-function-dax.md ├── closingbalancemonth-function-dax.md ├── closingbalancequarter-function-dax.md ├── closingbalanceyear-function-dax.md ├── coalesce-function-dax.md ├── collapse-function-dax.md ├── collapseall-function-dax.md ├── columnstatistics-function-dax.md ├── combin-function-dax.md ├── combina-function-dax.md ├── combinevalues-function-dax.md ├── concatenate-function-dax.md ├── concatenatex-function-dax.md ├── confidence-norm-function-dax.md ├── confidence-t-function-dax.md ├── contains-function-dax.md ├── containsrow-function-dax.md ├── containsstring-function-dax.md ├── containsstringexact-function-dax.md ├── convert-function-dax.md ├── cos-function-dax.md ├── cosh-function-dax.md ├── cot-function-dax.md ├── coth-function-dax.md ├── count-function-dax.md ├── counta-function-dax.md ├── countax-function-dax.md ├── countblank-function-dax.md ├── countrows-function-dax.md ├── countx-function-dax.md ├── coupdaybs-function-dax.md ├── coupdays-function-dax.md ├── coupdaysnc-function-dax.md ├── coupncd-function-dax.md ├── coupnum-function-dax.md ├── couppcd-function-dax.md ├── crossfilter-function-dax.md ├── crossjoin-function-dax.md ├── cumipmt-function-dax.md ├── cumprinc-function-dax.md ├── currency-function-dax.md ├── currentgroup-function-dax.md ├── customdata-function-dax.md ├── datatable-function-dax.md ├── date-and-time-functions-dax.md ├── date-function-dax.md ├── dateadd-function-dax.md ├── datediff-function-dax.md ├── datesbetween-function-dax.md ├── datesinperiod-function-dax.md ├── datesmtd-function-dax.md ├── datesqtd-function-dax.md ├── datesytd-function-dax.md ├── datevalue-function-dax.md ├── dax-copilot.md ├── dax-function-reference.md ├── dax-glossary.md ├── dax-learn-videos.md ├── dax-operator-reference.md ├── dax-overview.md ├── dax-parameter-naming-conventions.md ├── dax-queries.md ├── dax-sample-model.md ├── dax-syntax-reference.md ├── day-function-dax.md ├── db-function-dax.md ├── ddb-function-dax.md ├── define-statement-dax.md ├── degrees-function-dax.md ├── dependon-function-dax.md ├── detailrows-function-dax.md ├── disc-function-dax.md ├── distinct-function-dax.md ├── distinct-table-function-dax.md ├── distinctcount-function-dax.md ├── distinctcountnoblank-function-dax.md ├── divide-function-dax.md ├── docfx.json ├── dollarde-function-dax.md ├── dollarfr-function-dax.md ├── duration-function-dax.md ├── earlier-function-dax.md ├── earliest-function-dax.md ├── edate-function-dax.md ├── effect-function-dax.md ├── endofmonth-function-dax.md ├── endofquarter-function-dax.md ├── endofyear-function-dax.md ├── eomonth-function-dax.md ├── error-function-dax.md ├── evaluate-statement-dax.md ├── evaluateandlog-function-dax.md ├── even-function-dax.md ├── exact-function-dax.md ├── except-function-dax.md ├── exp-function-dax.md ├── expand-function-dax.md ├── expandall-function-dax.md ├── expon-dist-function-dax.md ├── fact-function-dax.md ├── false-function-dax.md ├── filter-function-dax.md ├── filter-functions-dax.md ├── filtercluster-function-dax.md ├── filters-function-dax.md ├── financial-functions-dax.md ├── find-function-dax.md ├── first-function-dax.md ├── firstdate-function-dax.md ├── firstnonblank-function-dax.md ├── firstnonblankvalue-function-dax.md ├── fixed-function-dax.md ├── floor-function-dax.md ├── format-function-dax.md ├── fv-function-dax.md ├── gcd-function-dax.md ├── generate-function-dax.md ├── generateall-function-dax.md ├── generateseries-function-dax.md ├── geomean-function-dax.md ├── geomeanx-function-dax.md ├── groupby-function-dax.md ├── groupcrossapply-function-dax.md ├── groupcrossapplytable-function-dax.md ├── hasonefilter-function-dax.md ├── hasonevalue-function-dax.md ├── hour-function-dax.md ├── if-eager-function-dax.md ├── if-function-dax.md ├── iferror-function-dax.md ├── ignore-function-dax.md ├── includes │ ├── applies-to-measures-columns-tables-visual-calculations-discouraged.md │ ├── applies-to-measures-columns-tables-visual-calculations.md │ ├── applies-to-measures-columns-tables.md │ ├── applies-to-query-only.md │ ├── applies-to-visual-calculations.md │ ├── enum-objecttype.md │ ├── enum-title-for-info-dax-functions.md │ ├── function-not-supported-in-directquery-mode.md │ ├── parameters-for-info-dax-functions.md │ └── power-bi-dax-sample-model.md ├── index-function-dax.md ├── index.yml ├── info-annotations-function-dax.md ├── info-calcdependency-function-dax.md ├── info-functions-dax.md ├── info-view-columns-function-dax.md ├── info-view-measures-function-dax.md ├── info-view-relationships-function-dax.md ├── info-view-tables-function-dax.md ├── information-functions-dax.md ├── int-function-dax.md ├── intersect-function-dax.md ├── intrate-function-dax.md ├── ipmt-function-dax.md ├── isafter-function-dax.md ├── isatlevel-function-dax.md ├── isblank-function-dax.md ├── iscrossfiltered-function-dax.md ├── isempty-function-dax.md ├── iserror-function-dax.md ├── iseven-function-dax.md ├── isfiltered-function-dax.md ├── isinscope-function-dax.md ├── islogical-function-dax.md ├── isnontext-function-dax.md ├── isnumber-function-dax.md ├── iso-ceiling-function-dax.md ├── isodd-function-dax.md ├── isonorafter-function-dax.md ├── ispmt-function-dax.md ├── isselectedmeasure-function-dax.md ├── issubtotal-function-dax.md ├── istext-function-dax.md ├── keepfilters-function-dax.md ├── last-function-dax.md ├── lastdate-function-dax.md ├── lastnonblank-function-dax.md ├── lastnonblankvalue-function-dax.md ├── lcm-function-dax.md ├── left-function-dax.md ├── len-function-dax.md ├── linest-function-dax.md ├── linestx-function-dax.md ├── ln-function-dax.md ├── log-function-dax.md ├── log10-function-dax.md ├── logical-functions-dax.md ├── lookup-function-dax.md ├── lookupvalue-function-dax.md ├── lookupwithtotals-function-dax.md ├── lower-function-dax.md ├── matchby-function-dax.md ├── math-and-trig-functions-dax.md ├── max-function-dax.md ├── maxa-function-dax.md ├── maxx-function-dax.md ├── mduration-function-dax.md ├── measure-statement-dax.md ├── media │ ├── columnstatistics-function-dax │ │ └── columnstatistics-result-table.png │ ├── crossfilter-function │ │ ├── crossfilter-examp-diagview.png │ │ ├── crossfilter-examp-pivottable1.png │ │ └── crossfilter-examp-pivottable2.png │ ├── dax-copilot │ │ ├── copilot-explain-query.png │ │ ├── copilot-inspire-buttons-get-started.png │ │ ├── copilot-power-bi-desktop.png │ │ ├── copilot-power-bi-service-write-dax-queries.png │ │ ├── copilot-run-query.png │ │ ├── dax-copilot-conversational-query.png │ │ ├── dax-copilot-explain-query-more.png │ │ ├── dax-copilot-explain-query.png │ │ ├── dax-copilot-explain-summarize-columns.png │ │ ├── dax-copilot-highlight-deff.png │ │ ├── dax-copilot-highlight-diff.png │ │ ├── dax-copilot-new-column-query.png │ │ ├── dax-copilot-query-explanation.png │ │ ├── dax-copilot-run-query.png │ │ ├── dax-copilot-show-diff.png │ │ ├── dax-copilot-summarize-columns-brief.png │ │ ├── dax-copilot-summarize-columns-more.png │ │ ├── dax-copilot-updated-query.png │ │ ├── dax-list-products.png │ │ ├── dax-query-list-products.png │ │ └── dax-query-results.png │ ├── dax-overview │ │ ├── dax-overview-book.png │ │ ├── dax-overview-excel.png │ │ ├── dax-overview-pbid.png │ │ ├── dax-overview-ssms.png │ │ ├── dax-overview-studio.png │ │ ├── dax-overview-te.png │ │ └── dax-overview-vs.png │ ├── dax-queries │ │ ├── dax-evaluate-define-measures.png │ │ ├── dax-evaluate-define.png │ │ ├── dax-evaluate-filter.png │ │ ├── dax-evaluate-orderby.png │ │ ├── dax-evaluate-startat.png │ │ ├── dax-evaluate-summarizecolumns.png │ │ ├── dax-evaluate-topn.png │ │ ├── dax-evaluate.png │ │ ├── dax-visualcalc-collapse.png │ │ ├── dax-visualcalc-collapseall.png │ │ ├── dax-visualcalc-expand.png │ │ ├── dax-visualcalc-expandall.png │ │ ├── dax-visualcalc-first.png │ │ ├── dax-visualcalc-index.png │ │ ├── dax-visualcalc-isatlevel.png │ │ ├── dax-visualcalc-last.png │ │ ├── dax-visualcalc-lookup-example2.png │ │ ├── dax-visualcalc-lookup.png │ │ ├── dax-visualcalc-lookupwithtotals-example1.png │ │ ├── dax-visualcalc-lookupwithtotals-example2.png │ │ ├── dax-visualcalc-movingaverage.png │ │ ├── dax-visualcalc-next.png │ │ ├── dax-visualcalc-offset.png │ │ ├── dax-visualcalc-previous.png │ │ ├── dax-visualcalc-range.png │ │ ├── dax-visualcalc-rank.png │ │ ├── dax-visualcalc-rownumber.png │ │ ├── dax-visualcalc-runningsum.png │ │ └── dax-visualcalc-window.png │ ├── dax-sample-model │ │ └── adventure-works-logo-150x150.png │ ├── icons │ │ ├── discouraged.png │ │ ├── no.png │ │ └── yes.png │ ├── info-functions-dax │ │ ├── info-view-columns-dax-query.png │ │ ├── info-view-measures-dax-query.png │ │ ├── info-view-relationships-dax-query.png │ │ └── info-view-tables-dax-query.png │ ├── info-view-columns-function-dax │ │ ├── dax-query-example-2.png │ │ └── measure-example-4-visuals.png │ ├── info-view-measures-function-dax │ │ ├── dax-query-example-1.png │ │ ├── dax-query-example-2.png │ │ ├── measure-example-4-dax-query.png │ │ └── measure-example-4-visuals.png │ ├── info-view-relationships-function-dax │ │ ├── dax-query-example-1.png │ │ ├── dax-query-example-2.png │ │ ├── measure-example-4-dax-query.png │ │ └── measure-example-4-visuals.png │ └── info-view-tables-function-dax │ │ ├── calculated-table-example-3.png │ │ ├── dax-query-example-1.png │ │ ├── dax-query-example-2.png │ │ ├── measure-example-4-dax-query.png │ │ └── measure-example-4-visuals.png ├── median-function-dax.md ├── medianx-function-dax.md ├── mid-function-dax.md ├── min-function-dax.md ├── mina-function-dax.md ├── minute-function-dax.md ├── minx-function-dax.md ├── mod-function-dax.md ├── month-function-dax.md ├── movingaverage-function-dax.md ├── mround-function-dax.md ├── naturalinnerjoin-function-dax.md ├── naturalleftouterjoin-function-dax.md ├── networkdays-function-dax.md ├── new-dax-functions.md ├── next-function-dax.md ├── nextday-function-dax.md ├── nextmonth-function-dax.md ├── nextquarter-function-dax.md ├── nextyear-function-dax.md ├── nominal-function-dax.md ├── nonfilter-function-dax.md ├── nonvisual-function-dax.md ├── norm-dist-function-dax.md ├── norm-inv-function-dax.md ├── norm-s-dist-function-dax.md ├── norm-s-inv-function-dax.md ├── not-function-dax.md ├── now-function-dax.md ├── nper-function-dax.md ├── odd-function-dax.md ├── oddfprice-function-dax.md ├── oddfyield-function-dax.md ├── oddlprice-function-dax.md ├── oddlyield-function-dax.md ├── offset-function-dax.md ├── openingbalancemonth-function-dax.md ├── openingbalancequarter-function-dax.md ├── openingbalanceyear-function-dax.md ├── or-function-dax.md ├── orderby-function-dax.md ├── orderby-statement-dax.md ├── other-functions-dax.md ├── parallelperiod-function-dax.md ├── parent-and-child-functions-dax.md ├── partitionby-function-dax.md ├── path-function-dax.md ├── pathcontains-function-dax.md ├── pathitem-function-dax.md ├── pathitemreverse-function-dax.md ├── pathlength-function-dax.md ├── pduration-function-dax.md ├── percentile-exc-function-dax.md ├── percentile-inc-function-dax.md ├── percentilex-exc-function-dax.md ├── percentilex-inc-function-dax.md ├── permut-function-dax.md ├── pi-function-dax.md ├── pmt-function-dax.md ├── poisson-dist-function-dax.md ├── power-function-dax.md ├── ppmt-function-dax.md ├── previous-function-dax.md ├── previousday-function-dax.md ├── previousmonth-function-dax.md ├── previousquarter-function-dax.md ├── previousyear-function-dax.md ├── price-function-dax.md ├── pricedisc-function-dax.md ├── pricemat-function-dax.md ├── product-function-dax.md ├── productx-function-dax.md ├── pv-function-dax.md ├── quarter-function-dax.md ├── quotient-function-dax.md ├── radians-function-dax.md ├── rand-function-dax.md ├── randbetween-function-dax.md ├── range-function-dax.md ├── rank-eq-function-dax.md ├── rank-function-dax.md ├── rankx-function-dax.md ├── rate-function-dax.md ├── received-function-dax.md ├── related-function-dax.md ├── relatedtable-function-dax.md ├── relationship-functions-dax.md ├── removefilters-function-dax.md ├── replace-function-dax.md ├── rept-function-dax.md ├── right-function-dax.md ├── rollup-function-dax.md ├── rollupaddissubtotal-function-dax.md ├── rollupgroup-function-dax.md ├── rollupissubtotal-function-dax.md ├── round-function-dax.md ├── rounddown-function-dax.md ├── roundup-function-dax.md ├── row-function-dax.md ├── rownumber-function-dax.md ├── rri-function-dax.md ├── runningsum-function-dax.md ├── sameperiodlastyear-function-dax.md ├── sample-function-dax.md ├── sampleaxiswithlocalminmax-function-dax.md ├── samplecartesianpointsbycover-function-dax.md ├── search-function-dax.md ├── second-function-dax.md ├── selectcolumns-function-dax.md ├── selectedmeasure-function-dax.md ├── selectedmeasureformatstring-function-dax.md ├── selectedmeasurename-function-dax.md ├── selectedvalue-function-dax.md ├── shadowcluster-function-dax.md ├── sign-function-dax.md ├── sin-function-dax.md ├── sinh-function-dax.md ├── sln-function-dax.md ├── sqrt-function-dax.md ├── sqrtpi-function-dax.md ├── startat-statement-dax.md ├── startofmonth-function-dax.md ├── startofquarter-function-dax.md ├── startofyear-function-dax.md ├── statements-dax.md ├── statistical-functions-dax.md ├── stdev-p-function-dax.md ├── stdev-s-function-dax.md ├── stdevx-p-function-dax.md ├── stdevx-s-function-dax.md ├── substitute-function-dax.md ├── substitutewithindex-function-dax.md ├── sum-function-dax.md ├── summarize-function-dax.md ├── summarizecolumns-function-dax.md ├── sumx-function-dax.md ├── switch-function-dax.md ├── syd-function-dax.md ├── t-dist-2t-function-dax.md ├── t-dist-function-dax.md ├── t-dist-rt-function-dax.md ├── t-inv-2t-function-dax.md ├── t-inv-function-dax.md ├── table-constructor.md ├── table-manipulation-functions-dax.md ├── tan-function-dax.md ├── tanh-function-dax.md ├── tbilleq-function-dax.md ├── tbillprice-function-dax.md ├── tbillyield-function-dax.md ├── text-functions-dax.md ├── time-function-dax.md ├── time-intelligence-functions-dax.md ├── timevalue-function-dax.md ├── toc.yml ├── tocsv-function-dax.md ├── today-function-dax.md ├── tojson-function-dax.md ├── topn-function-dax.md ├── topnskip-function-dax.md ├── totalmtd-function-dax.md ├── totalqtd-function-dax.md ├── totalytd-function-dax.md ├── treatas-function-dax.md ├── trim-function-dax.md ├── true-function-dax.md ├── trunc-function-dax.md ├── understanding-functions-for-parent-child-hierarchies-in-dax.md ├── unichar-function-dax.md ├── unicode-function-dax.md ├── union-function-dax.md ├── upper-function-dax.md ├── userculture-function-dax.md ├── userelationship-function-dax.md ├── username-function-dax.md ├── userobjectid-function-dax.md ├── userprincipalname-function-dax.md ├── utcnow-function-dax.md ├── utctoday-function-dax.md ├── value-function-dax.md ├── values-function-dax.md ├── var-dax.md ├── var-p-function-dax.md ├── var-s-function-dax.md ├── varx-p-function-dax.md ├── varx-s-function-dax.md ├── vdb-function-dax.md ├── virtual-column-statement-dax.md ├── virtual-table-statement-dax.md ├── weekday-function-dax.md ├── weeknum-function-dax.md ├── window-function-dax.md ├── xirr-function-dax.md ├── xnpv-function-dax.md ├── year-function-dax.md ├── yearfrac-function-dax.md ├── yield-function-dax.md ├── yielddisc-function-dax.md └── yieldmat-function-dax.md └── m ├── access-database.md ├── accesscontrolentry-conditiontoidentities.md ├── accesscontrolkind-type.md ├── accessing-data-functions.md ├── action-witherrorcontext.md ├── activedirectory-domains.md ├── adobeanalytics-cubes.md ├── adodotnet-datasource.md ├── adodotnet-query.md ├── analysisservices-database.md ├── analysisservices-databases.md ├── azurestorage-blobcontents.md ├── azurestorage-blobs.md ├── azurestorage-datalake.md ├── azurestorage-datalakecontents.md ├── azurestorage-tables.md ├── binary-approximatelength.md ├── binary-buffer.md ├── binary-combine.md ├── binary-compress.md ├── binary-decompress.md ├── binary-from.md ├── binary-fromlist.md ├── binary-fromtext.md ├── binary-functions.md ├── binary-infercontenttype.md ├── binary-length.md ├── binary-range.md ├── binary-split.md ├── binary-tolist.md ├── binary-totext.md ├── binary-view.md ├── binary-viewerror.md ├── binary-viewfunction.md ├── binaryencoding-type.md ├── binaryformat-7bitencodedsignedinteger.md ├── binaryformat-7bitencodedunsignedinteger.md ├── binaryformat-binary.md ├── binaryformat-byte.md ├── binaryformat-byteorder.md ├── binaryformat-choice.md ├── binaryformat-decimal.md ├── binaryformat-double.md ├── binaryformat-group.md ├── binaryformat-length.md ├── binaryformat-list.md ├── binaryformat-null.md ├── binaryformat-record.md ├── binaryformat-signedinteger16.md ├── binaryformat-signedinteger32.md ├── binaryformat-signedinteger64.md ├── binaryformat-single.md ├── binaryformat-text.md ├── binaryformat-transform.md ├── binaryformat-unsignedinteger16.md ├── binaryformat-unsignedinteger32.md ├── binaryformat-unsignedinteger64.md ├── binaryoccurrence-type.md ├── breadcrumb └── toc.yml ├── buffermode-type.md ├── byte-from.md ├── byteorder-type.md ├── cdm-contents.md ├── character-fromnumber.md ├── character-tonumber.md ├── combiner-combinetextbydelimiter.md ├── combiner-combinetextbyeachdelimiter.md ├── combiner-combinetextbylengths.md ├── combiner-combinetextbypositions.md ├── combiner-combinetextbyranges.md ├── combiner-functions.md ├── comments.md ├── comparer-equals.md ├── comparer-fromculture.md ├── comparer-functions.md ├── comparer-ordinal.md ├── comparer-ordinalignorecase.md ├── compression-type.md ├── constants.md ├── csv-document.md ├── csvstyle-type.md ├── cube-addandexpanddimensioncolumn.md ├── cube-addmeasurecolumn.md ├── cube-applyparameter.md ├── cube-attributememberid.md ├── cube-attributememberproperty.md ├── cube-collapseandremovecolumns.md ├── cube-dimensions.md ├── cube-displayfolders.md ├── cube-measureproperties.md ├── cube-measureproperty.md ├── cube-measures.md ├── cube-parameters.md ├── cube-properties.md ├── cube-propertykey.md ├── cube-replacedimensions.md ├── cube-transform.md ├── culture-current.md ├── currency-from.md ├── custom-date-and-time-format-strings.md ├── custom-numeric-format-strings.md ├── date-adddays.md ├── date-addmonths.md ├── date-addquarters.md ├── date-addweeks.md ├── date-addyears.md ├── date-day.md ├── date-dayofweek.md ├── date-dayofweekname.md ├── date-dayofyear.md ├── date-daysinmonth.md ├── date-endofday.md ├── date-endofmonth.md ├── date-endofquarter.md ├── date-endofweek.md ├── date-endofyear.md ├── date-from.md ├── date-fromtext.md ├── date-functions.md ├── date-isincurrentday.md ├── date-isincurrentmonth.md ├── date-isincurrentquarter.md ├── date-isincurrentweek.md ├── date-isincurrentyear.md ├── date-isinnextday.md ├── date-isinnextmonth.md ├── date-isinnextndays.md ├── date-isinnextnmonths.md ├── date-isinnextnquarters.md ├── date-isinnextnweeks.md ├── date-isinnextnyears.md ├── date-isinnextquarter.md ├── date-isinnextweek.md ├── date-isinnextyear.md ├── date-isinpreviousday.md ├── date-isinpreviousmonth.md ├── date-isinpreviousndays.md ├── date-isinpreviousnmonths.md ├── date-isinpreviousnquarters.md ├── date-isinpreviousnweeks.md ├── date-isinpreviousnyears.md ├── date-isinpreviousquarter.md ├── date-isinpreviousweek.md ├── date-isinpreviousyear.md ├── date-isinyeartodate.md ├── date-isleapyear.md ├── date-month.md ├── date-monthname.md ├── date-quarterofyear.md ├── date-startofday.md ├── date-startofmonth.md ├── date-startofquarter.md ├── date-startofweek.md ├── date-startofyear.md ├── date-torecord.md ├── date-totext.md ├── date-weekofmonth.md ├── date-weekofyear.md ├── date-year.md ├── datetime-addzone.md ├── datetime-date.md ├── datetime-fixedlocalnow.md ├── datetime-from.md ├── datetime-fromfiletime.md ├── datetime-fromtext.md ├── datetime-functions.md ├── datetime-isincurrenthour.md ├── datetime-isincurrentminute.md ├── datetime-isincurrentsecond.md ├── datetime-isinnexthour.md ├── datetime-isinnextminute.md ├── datetime-isinnextnhours.md ├── datetime-isinnextnminutes.md ├── datetime-isinnextnseconds.md ├── datetime-isinnextsecond.md ├── datetime-isinprevioushour.md ├── datetime-isinpreviousminute.md ├── datetime-isinpreviousnhours.md ├── datetime-isinpreviousnminutes.md ├── datetime-isinpreviousnseconds.md ├── datetime-isinprevioussecond.md ├── datetime-localnow.md ├── datetime-time.md ├── datetime-torecord.md ├── datetime-totext.md ├── datetimezone-fixedlocalnow.md ├── datetimezone-fixedutcnow.md ├── datetimezone-from.md ├── datetimezone-fromfiletime.md ├── datetimezone-fromtext.md ├── datetimezone-functions.md ├── datetimezone-localnow.md ├── datetimezone-removezone.md ├── datetimezone-switchzone.md ├── datetimezone-tolocal.md ├── datetimezone-torecord.md ├── datetimezone-totext.md ├── datetimezone-toutc.md ├── datetimezone-utcnow.md ├── datetimezone-zonehours.md ├── datetimezone-zoneminutes.md ├── day-type.md ├── db2-database.md ├── decimal-from.md ├── deltalake-metadata.md ├── deltalake-table.md ├── diagnostics-activityid.md ├── diagnostics-correlationid.md ├── diagnostics-trace.md ├── directquerycapabilities-from.md ├── docfx.json ├── double-from.md ├── duration-days.md ├── duration-from.md ├── duration-fromtext.md ├── duration-functions.md ├── duration-hours.md ├── duration-minutes.md ├── duration-seconds.md ├── duration-torecord.md ├── duration-totaldays.md ├── duration-totalhours.md ├── duration-totalminutes.md ├── duration-totalseconds.md ├── duration-totext.md ├── dynamic-values.md ├── embedded-value.md ├── enumerations.md ├── error-handling.md ├── error-record.md ├── errors.md ├── essbase-cubes.md ├── evaluation-model.md ├── excel-currentworkbook.md ├── excel-shapetable.md ├── excel-workbook.md ├── exchange-contents.md ├── expression-constant.md ├── expression-evaluate.md ├── expression-functions.md ├── expression-identifier.md ├── expressions-values-and-let-expression.md ├── extravalues-type.md ├── file-contents.md ├── folder-contents.md ├── folder-files.md ├── function-from.md ├── function-invoke.md ├── function-invokeafter.md ├── function-invokewitherrorcontext.md ├── function-isdatasource.md ├── function-scalarvector.md ├── function-values.md ├── geography-fromwellknowntext.md ├── geography-towellknowntext.md ├── geographypoint-from.md ├── geometry-fromwellknowntext.md ├── geometry-towellknowntext.md ├── geometrypoint-from.md ├── googleanalytics-accounts.md ├── graph-nodes.md ├── groupkind-type.md ├── guid-from.md ├── hdfs-contents.md ├── hdfs-files.md ├── hdinsight-containers.md ├── hdinsight-contents.md ├── hdinsight-files.md ├── how-culture-affects-text-formatting.md ├── html-table.md ├── identity-from.md ├── identity-ismemberof.md ├── identityprovider-default.md ├── index.yml ├── informix-database.md ├── int16-from.md ├── int32-from.md ├── int64-from.md ├── int8-from.md ├── itemexpression-from.md ├── itemexpression-item.md ├── joinalgorithm-type.md ├── joinkind-type.md ├── joinside-type.md ├── json-document.md ├── json-fromvalue.md ├── limitclausekind-type.md ├── lines-frombinary.md ├── lines-fromtext.md ├── lines-functions.md ├── lines-tobinary.md ├── lines-totext.md ├── list-accumulate.md ├── list-alltrue.md ├── list-alternate.md ├── list-anytrue.md ├── list-average.md ├── list-buffer.md ├── list-combine.md ├── list-conformtopagereader.md ├── list-contains.md ├── list-containsall.md ├── list-containsany.md ├── list-count.md ├── list-covariance.md ├── list-dates.md ├── list-datetimes.md ├── list-datetimezones.md ├── list-difference.md ├── list-distinct.md ├── list-durations.md ├── list-findtext.md ├── list-first.md ├── list-firstn.md ├── list-functions.md ├── list-generate.md ├── list-insertrange.md ├── list-intersect.md ├── list-isdistinct.md ├── list-isempty.md ├── list-last.md ├── list-lastn.md ├── list-matchesall.md ├── list-matchesany.md ├── list-max.md ├── list-maxn.md ├── list-median.md ├── list-min.md ├── list-minn.md ├── list-mode.md ├── list-modes.md ├── list-nonnullcount.md ├── list-numbers.md ├── list-percentile.md ├── list-positionof.md ├── list-positionofany.md ├── list-positions.md ├── list-product.md ├── list-random.md ├── list-range.md ├── list-removefirstn.md ├── list-removeitems.md ├── list-removelastn.md ├── list-removematchingitems.md ├── list-removenulls.md ├── list-removerange.md ├── list-repeat.md ├── list-replacematchingitems.md ├── list-replacerange.md ├── list-replacevalue.md ├── list-reverse.md ├── list-select.md ├── list-single.md ├── list-singleordefault.md ├── list-skip.md ├── list-sort.md ├── list-split.md ├── list-standarddeviation.md ├── list-sum.md ├── list-times.md ├── list-transform.md ├── list-transformmany.md ├── list-union.md ├── list-zip.md ├── logical-from.md ├── logical-fromtext.md ├── logical-functions.md ├── logical-totext.md ├── m-spec-basic-concepts.md ├── m-spec-conditionals.md ├── m-spec-consolidated-grammar.md ├── m-spec-error-handling.md ├── m-spec-functions.md ├── m-spec-introduction.md ├── m-spec-let.md ├── m-spec-lexical-structure.md ├── m-spec-operators.md ├── m-spec-sections.md ├── m-spec-types.md ├── m-spec-values.md ├── m-working-with-case.md ├── media ├── evaluation-model-1.png ├── evaluation-model-2.png ├── fuzzy-match-table.png ├── ignore-case-table.png ├── list-distinct-lower-case.png ├── list-distinct.png ├── list-example-1.png ├── list-example-2.png ├── list-lower-case.png ├── list-proper-case.png ├── list-upper-case.png ├── m-spec-formula-value.png ├── m-spec-type-compatibility.png ├── madvancededitor.png ├── mstep1.png ├── sorted-list.png ├── table-case-sensitive.png ├── table-example.png ├── table-loaded-power-bi-desktop.png ├── table-lower-case.png ├── table-proper-case.png └── table-upper-case.png ├── metadata.md ├── missingfield-type.md ├── module-versions.md ├── mysql-database.md ├── number-abs.md ├── number-acos.md ├── number-asin.md ├── number-atan.md ├── number-atan2.md ├── number-bitwiseand.md ├── number-bitwisenot.md ├── number-bitwiseor.md ├── number-bitwiseshiftleft.md ├── number-bitwiseshiftright.md ├── number-bitwisexor.md ├── number-combinations.md ├── number-cos.md ├── number-cosh.md ├── number-e.md ├── number-epsilon.md ├── number-exp.md ├── number-factorial.md ├── number-from.md ├── number-fromtext.md ├── number-functions.md ├── number-integerdivide.md ├── number-iseven.md ├── number-isnan.md ├── number-isodd.md ├── number-ln.md ├── number-log.md ├── number-log10.md ├── number-mod.md ├── number-nan.md ├── number-negativeinfinity.md ├── number-permutations.md ├── number-pi.md ├── number-positiveinfinity.md ├── number-power.md ├── number-random.md ├── number-randombetween.md ├── number-round.md ├── number-roundawayfromzero.md ├── number-rounddown.md ├── number-roundtowardzero.md ├── number-roundup.md ├── number-sign.md ├── number-sin.md ├── number-sinh.md ├── number-sqrt.md ├── number-tan.md ├── number-tanh.md ├── number-totext.md ├── occurrence-type.md ├── odata-feed.md ├── odataomitvalues-type.md ├── odbc-datasource.md ├── odbc-inferoptions.md ├── odbc-query.md ├── oledb-datasource.md ├── oledb-query.md ├── operators.md ├── oracle-database.md ├── order-type.md ├── pdf-tables.md ├── percentage-from.md ├── percentilemode-type.md ├── postgresql-database.md ├── power-query-m-function-reference.md ├── power-query-m-language-specification.md ├── power-query-m-type-system.md ├── precision-type.md ├── progress-datasourceprogress.md ├── quick-tour-of-the-power-query-m-formula-language.md ├── quotestyle-type.md ├── rankkind-type.md ├── rdata-frombinary.md ├── record-addfield.md ├── record-combine.md ├── record-field.md ├── record-fieldcount.md ├── record-fieldnames.md ├── record-fieldordefault.md ├── record-fieldvalues.md ├── record-fromlist.md ├── record-fromtable.md ├── record-functions.md ├── record-hasfields.md ├── record-removefields.md ├── record-renamefields.md ├── record-reorderfields.md ├── record-selectfields.md ├── record-tolist.md ├── record-totable.md ├── record-transformfields.md ├── relativeposition-type.md ├── replacer-functions.md ├── replacer-replacetext.md ├── replacer-replacevalue.md ├── roundingmode-type.md ├── rowexpression-column.md ├── rowexpression-from.md ├── rowexpression-row.md ├── salesforce-data.md ├── salesforce-reports.md ├── sapbusinesswarehouse-cubes.md ├── sapbusinesswarehouseexecutionmode-type.md ├── saphana-database.md ├── saphanadistribution-type.md ├── saphanarangeoperator-type.md ├── sharepoint-contents.md ├── sharepoint-files.md ├── sharepoint-tables.md ├── sharpbinary.md ├── sharpdate.md ├── sharpdatetime.md ├── sharpdatetimezone.md ├── sharpduration.md ├── sharptable.md ├── sharptime.md ├── single-from.md ├── soda-feed.md ├── splitter-functions.md ├── splitter-splitbynothing.md ├── splitter-splittextbyanydelimiter.md ├── splitter-splittextbycharactertransition.md ├── splitter-splittextbydelimiter.md ├── splitter-splittextbyeachdelimiter.md ├── splitter-splittextbylengths.md ├── splitter-splittextbypositions.md ├── splitter-splittextbyranges.md ├── splitter-splittextbyrepeatedlengths.md ├── splitter-splittextbywhitespace.md ├── sql-database.md ├── sql-databases.md ├── sqlexpression-schemafrom.md ├── sqlexpression-toexpression.md ├── standard-date-and-time-format-strings.md ├── standard-numeric-format-strings.md ├── sybase-database.md ├── table-addcolumn.md ├── table-addfuzzyclustercolumn.md ├── table-addindexcolumn.md ├── table-addjoincolumn.md ├── table-addkey.md ├── table-addrankcolumn.md ├── table-aggregatetablecolumn.md ├── table-alternaterows.md ├── table-approximaterowcount.md ├── table-buffer.md ├── table-column.md ├── table-columncount.md ├── table-columnnames.md ├── table-columnsoftype.md ├── table-combine.md ├── table-combinecolumns.md ├── table-combinecolumnstorecord.md ├── table-conformtopagereader.md ├── table-contains.md ├── table-containsall.md ├── table-containsany.md ├── table-demoteheaders.md ├── table-distinct.md ├── table-duplicatecolumn.md ├── table-expandlistcolumn.md ├── table-expandrecordcolumn.md ├── table-expandtablecolumn.md ├── table-filldown.md ├── table-fillup.md ├── table-filterwithdatatable.md ├── table-findtext.md ├── table-first.md ├── table-firstn.md ├── table-firstvalue.md ├── table-fromcolumns.md ├── table-fromlist.md ├── table-frompartitions.md ├── table-fromrecords.md ├── table-fromrows.md ├── table-fromvalue.md ├── table-functions.md ├── table-fuzzygroup.md ├── table-fuzzyjoin.md ├── table-fuzzynestedjoin.md ├── table-group.md ├── table-hascolumns.md ├── table-insertrows.md ├── table-isdistinct.md ├── table-isempty.md ├── table-join.md ├── table-keys.md ├── table-last.md ├── table-lastn.md ├── table-matchesallrows.md ├── table-matchesanyrows.md ├── table-max.md ├── table-maxn.md ├── table-min.md ├── table-minn.md ├── table-nestedjoin.md ├── table-partition.md ├── table-partitionvalues.md ├── table-pivot.md ├── table-positionof.md ├── table-positionofany.md ├── table-prefixcolumns.md ├── table-profile.md ├── table-promoteheaders.md ├── table-range.md ├── table-removecolumns.md ├── table-removefirstn.md ├── table-removelastn.md ├── table-removematchingrows.md ├── table-removerows.md ├── table-removerowswitherrors.md ├── table-renamecolumns.md ├── table-reordercolumns.md ├── table-repeat.md ├── table-replaceerrorvalues.md ├── table-replacekeys.md ├── table-replacematchingrows.md ├── table-replacerelationshipidentity.md ├── table-replacerows.md ├── table-replacevalue.md ├── table-reverserows.md ├── table-rowcount.md ├── table-schema.md ├── table-selectcolumns.md ├── table-selectrows.md ├── table-selectrowswitherrors.md ├── table-singlerow.md ├── table-skip.md ├── table-sort.md ├── table-split.md ├── table-splitat.md ├── table-splitcolumn.md ├── table-stopfolding.md ├── table-tocolumns.md ├── table-tolist.md ├── table-torecords.md ├── table-torows.md ├── table-transformcolumnnames.md ├── table-transformcolumns.md ├── table-transformcolumntypes.md ├── table-transformrows.md ├── table-transpose.md ├── table-unpivot.md ├── table-unpivotothercolumns.md ├── table-view.md ├── table-viewerror.md ├── table-viewfunction.md ├── table-witherrorcontext.md ├── tables-getrelationships.md ├── teradata-database.md ├── text-afterdelimiter.md ├── text-at.md ├── text-beforedelimiter.md ├── text-betweendelimiters.md ├── text-clean.md ├── text-combine.md ├── text-contains.md ├── text-end.md ├── text-endswith.md ├── text-format.md ├── text-from.md ├── text-frombinary.md ├── text-functions.md ├── text-infernumbertype.md ├── text-insert.md ├── text-length.md ├── text-lower.md ├── text-middle.md ├── text-newguid.md ├── text-padend.md ├── text-padstart.md ├── text-positionof.md ├── text-positionofany.md ├── text-proper.md ├── text-range.md ├── text-remove.md ├── text-removerange.md ├── text-repeat.md ├── text-replace.md ├── text-replacerange.md ├── text-reverse.md ├── text-select.md ├── text-split.md ├── text-splitany.md ├── text-start.md ├── text-startswith.md ├── text-tobinary.md ├── text-tolist.md ├── text-trim.md ├── text-trimend.md ├── text-trimstart.md ├── text-upper.md ├── textencoding-type.md ├── time-endofhour.md ├── time-from.md ├── time-fromtext.md ├── time-functions.md ├── time-hour.md ├── time-minute.md ├── time-second.md ├── time-startofhour.md ├── time-torecord.md ├── time-totext.md ├── timezone-current.md ├── toc.yml ├── tracelevel-type.md ├── type-addtablekey.md ├── type-closedrecord.md ├── type-conversion.md ├── type-facets.md ├── type-forfunction.md ├── type-forrecord.md ├── type-functionparameters.md ├── type-functionrequiredparameters.md ├── type-functionreturn.md ├── type-functions.md ├── type-is.md ├── type-isnullable.md ├── type-isopenrecord.md ├── type-listitem.md ├── type-nonnullable.md ├── type-openrecord.md ├── type-recordfields.md ├── type-replacefacets.md ├── type-replacetablekeys.md ├── type-tablecolumn.md ├── type-tablekeys.md ├── type-tablerow.md ├── type-tableschema.md ├── type-union.md ├── understanding-power-query-m-functions.md ├── uri-buildquerystring.md ├── uri-combine.md ├── uri-escapedatastring.md ├── uri-functions.md ├── uri-parts.md ├── value-add.md ├── value-alternates.md ├── value-as.md ├── value-compare.md ├── value-divide.md ├── value-equals.md ├── value-expression.md ├── value-firewall.md ├── value-fromtext.md ├── value-functions.md ├── value-is.md ├── value-lineage.md ├── value-metadata.md ├── value-multiply.md ├── value-nativequery.md ├── value-nullableequals.md ├── value-optimize.md ├── value-removemetadata.md ├── value-replacemetadata.md ├── value-replacetype.md ├── value-subtract.md ├── value-traits.md ├── value-type.md ├── value-versionidentity.md ├── value-versions.md ├── value-viewerror.md ├── value-viewfunction.md ├── variable-value.md ├── web-browsercontents.md ├── web-contents.md ├── web-headers.md ├── web-page.md ├── webaction-request.md ├── webmethod-type.md ├── xml-document.md └── xml-tables.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Explicitly declare text files you want to always be normalized and converted 5 | # to native line endings on checkout. 6 | *.c text 7 | *.h text 8 | 9 | # Declare files that will always have CRLF line endings on checkout. 10 | *.sln text eol=crlf 11 | 12 | # Denote all files that are truly binary and should not be modified. 13 | *.png binary 14 | *.jpg binary -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | log/ 2 | obj/ 3 | _site/ 4 | .optemp/ 5 | _themes*/ 6 | _repo.*/ 7 | 8 | .openpublishing.buildcore.ps1 9 | 10 | **/.vscode/settings.json 11 | -------------------------------------------------------------------------------- /query-languages/dax/acot-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ACOT" 3 | title: "ACOT function (DAX)" 4 | --- 5 | # ACOT 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Returns the principal value of the arccotangent, or inverse cotangent of a number. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | ACOT(number) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`Number`|The cosine of the angle you want. Must be a real number.| 22 | 23 | ## Return value 24 | 25 | A single decimal value. 26 | -------------------------------------------------------------------------------- /query-languages/dax/acoth-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ACOTH" 3 | title: "ACOTH function (DAX)" 4 | --- 5 | # ACOTH 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Returns the inverse hyperbolic cotangent of a number. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | ACOTH(number) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`Number`|The absolute value of Number must be greater than 1.| 22 | 23 | ## Return value 24 | 25 | A single decimal value. 26 | 27 | ## Remarks 28 | 29 | [!INCLUDE [function-not-supported-in-directquery-mode](includes/function-not-supported-in-directquery-mode.md)] 30 | -------------------------------------------------------------------------------- /query-languages/dax/best-practices/media/dax-avoid-converting-blank/table-visual-good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/best-practices/media/dax-avoid-converting-blank/table-visual-good.png -------------------------------------------------------------------------------- /query-languages/dax/best-practices/media/dax-avoid-converting-blank/table-visual-poor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/best-practices/media/dax-avoid-converting-blank/table-visual-poor.png -------------------------------------------------------------------------------- /query-languages/dax/best-practices/media/dax-understand-orderby/offset-by-calendar-year.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/best-practices/media/dax-understand-orderby/offset-by-calendar-year.png -------------------------------------------------------------------------------- /query-languages/dax/breadcrumb/toc.yml: -------------------------------------------------------------------------------- 1 | - name: Data Analysis Expressions (DAX) 2 | tocHref: /dax/ 3 | topicHref: /dax/index 4 | -------------------------------------------------------------------------------- /query-languages/dax/degrees-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DEGREES" 3 | title: "DEGREES function (DAX)" 4 | --- 5 | # DEGREES 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Converts radians into degrees. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | DEGREES(angle) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`angle`|Required. The angle in radians that you want to convert.| 22 | 23 | ## Example 24 | 25 | |Formula|Description|Result| 26 | |-----------|---------------|----------| 27 | |`= DEGREES(PI())`|Degrees of pi radians|180| 28 | -------------------------------------------------------------------------------- /query-languages/dax/detailrows-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DETAILROWS" 3 | title: "DETAILROWS function (DAX)" 4 | --- 5 | # DETAILROWS 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables](includes/applies-to-measures-columns-tables.md)] 8 | 9 | Evaluates a Detail Rows Expression defined for a measure and returns the data. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | DETAILROWS([Measure]) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`Measure`|Name of a measure.| 22 | 23 | ## Return value 24 | 25 | A table with the data returned by the Detail Rows Expression. If no Detail Rows Expression is defined, the data for the table containing the measure is returned. 26 | -------------------------------------------------------------------------------- /query-languages/dax/includes/applies-to-measures-columns-tables-visual-calculations.md: -------------------------------------------------------------------------------- 1 | **Applies to:** :::image type="icon" source="../media/icons/yes.png":::[Calculated column](/power-bi/transform-model/desktop-calculations-options#calculated-column-dax) :::image type="icon" source="../media/icons/yes.png":::[Calculated table](/power-bi/transform-model/desktop-calculations-options#calculated-table) :::image type="icon" source="../media/icons/yes.png":::[Measure](/power-bi/transform-model/desktop-calculations-options#measures) :::image type="icon" source="../media/icons/yes.png":::[Visual calculation](/power-bi/transform-model/desktop-calculations-options#visual-calculation) -------------------------------------------------------------------------------- /query-languages/dax/includes/applies-to-measures-columns-tables.md: -------------------------------------------------------------------------------- 1 | **Applies to:** :::image type="icon" source="../media/icons/yes.png":::[Calculated column](/power-bi/transform-model/desktop-calculations-options#calculated-column-dax) :::image type="icon" source="../media/icons/yes.png":::[Calculated table](/power-bi/transform-model/desktop-calculations-options#calculated-table) :::image type="icon" source="../media/icons/yes.png":::[Measure](/power-bi/transform-model/desktop-calculations-options#measures) :::image type="icon" source="../media/icons/no.png":::[Visual calculation](/power-bi/transform-model/desktop-calculations-options#visual-calculation) -------------------------------------------------------------------------------- /query-languages/dax/includes/applies-to-query-only.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: DataZoeMS 3 | ms.author: zoedouglas 4 | ms.date: 03/17/2025 5 | ms.topic: include 6 | ms.service: powerbi 7 | ms.subservice: dax 8 | --- 9 | Applies to: :::image type="icon" source="../media/icons/no.png":::Calculated column :::image type="icon" source="../media/icons/no.png":::Calculated table :::image type="icon" source="../media/icons/no.png":::Measure :::image type="icon" source="../media/icons/no.png":::Visual calculation :::image type="icon" source="../media/icons/yes.png":::DAX query 10 | -------------------------------------------------------------------------------- /query-languages/dax/includes/applies-to-visual-calculations.md: -------------------------------------------------------------------------------- 1 | **Applies to:** :::image type="icon" source="../media/icons/no.png":::[Calculated column](/power-bi/transform-model/desktop-calculations-options#calculated-column-dax) :::image type="icon" source="../media/icons/no.png":::[Calculated table](/power-bi/transform-model/desktop-calculations-options#calculated-table) :::image type="icon" source="../media/icons/no.png":::[Measure](/power-bi/transform-model/desktop-calculations-options#measures) :::image type="icon" source="../media/icons/yes.png":::[Visual calculation](/power-bi/transform-model/desktop-calculations-options#visual-calculation) -------------------------------------------------------------------------------- /query-languages/dax/includes/enum-title-for-info-dax-functions.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: DataZoeMS 3 | ms.author: zoedouglas 4 | ms.date: 03/17/2025 5 | ms.topic: include 6 | ms.service: powerbi 7 | ms.subservice: dax 8 | --- 9 | ## Enumerations 10 | 11 | Columns returned in this INFO function give the ID of an enumeration, or lookup table. Here are the values for each enumeration in this DAX function. 12 | -------------------------------------------------------------------------------- /query-languages/dax/includes/function-not-supported-in-directquery-mode.md: -------------------------------------------------------------------------------- 1 | This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules. -------------------------------------------------------------------------------- /query-languages/dax/includes/power-bi-dax-sample-model.md: -------------------------------------------------------------------------------- 1 | _Examples in this article can be used with the sample Adventure Works DW 2020 Power BI Desktop model. To get the model, see [DAX sample model](https://aka.ms/dax-docs-samples)._ -------------------------------------------------------------------------------- /query-languages/dax/media/columnstatistics-function-dax/columnstatistics-result-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/columnstatistics-function-dax/columnstatistics-result-table.png -------------------------------------------------------------------------------- /query-languages/dax/media/crossfilter-function/crossfilter-examp-diagview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/crossfilter-function/crossfilter-examp-diagview.png -------------------------------------------------------------------------------- /query-languages/dax/media/crossfilter-function/crossfilter-examp-pivottable1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/crossfilter-function/crossfilter-examp-pivottable1.png -------------------------------------------------------------------------------- /query-languages/dax/media/crossfilter-function/crossfilter-examp-pivottable2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/crossfilter-function/crossfilter-examp-pivottable2.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/copilot-explain-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/copilot-explain-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/copilot-inspire-buttons-get-started.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/copilot-inspire-buttons-get-started.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/copilot-power-bi-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/copilot-power-bi-desktop.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/copilot-power-bi-service-write-dax-queries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/copilot-power-bi-service-write-dax-queries.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/copilot-run-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/copilot-run-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-conversational-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-conversational-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-explain-query-more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-explain-query-more.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-explain-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-explain-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-explain-summarize-columns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-explain-summarize-columns.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-highlight-deff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-highlight-deff.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-highlight-diff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-highlight-diff.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-new-column-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-new-column-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-query-explanation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-query-explanation.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-run-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-run-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-show-diff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-show-diff.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-summarize-columns-brief.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-summarize-columns-brief.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-summarize-columns-more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-summarize-columns-more.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-copilot-updated-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-copilot-updated-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-list-products.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-list-products.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-query-list-products.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-query-list-products.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-copilot/dax-query-results.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-copilot/dax-query-results.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-book.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-excel.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-pbid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-pbid.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-ssms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-ssms.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-studio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-studio.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-te.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-te.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-overview/dax-overview-vs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-overview/dax-overview-vs.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-define-measures.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-define-measures.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-define.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-define.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-filter.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-orderby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-orderby.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-startat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-startat.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-summarizecolumns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-summarizecolumns.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate-topn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate-topn.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-evaluate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-evaluate.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-collapse.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-collapseall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-collapseall.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-expand.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-expandall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-expandall.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-first.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-first.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-index.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-isatlevel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-isatlevel.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-last.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-last.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-lookup-example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-lookup-example2.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-lookup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-lookup.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-lookupwithtotals-example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-lookupwithtotals-example1.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-lookupwithtotals-example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-lookupwithtotals-example2.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-movingaverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-movingaverage.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-next.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-offset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-offset.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-previous.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-range.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-range.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-rank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-rank.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-rownumber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-rownumber.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-runningsum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-runningsum.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-queries/dax-visualcalc-window.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-queries/dax-visualcalc-window.png -------------------------------------------------------------------------------- /query-languages/dax/media/dax-sample-model/adventure-works-logo-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/dax-sample-model/adventure-works-logo-150x150.png -------------------------------------------------------------------------------- /query-languages/dax/media/icons/discouraged.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/icons/discouraged.png -------------------------------------------------------------------------------- /query-languages/dax/media/icons/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/icons/no.png -------------------------------------------------------------------------------- /query-languages/dax/media/icons/yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/icons/yes.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-functions-dax/info-view-columns-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-functions-dax/info-view-columns-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-functions-dax/info-view-measures-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-functions-dax/info-view-measures-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-functions-dax/info-view-relationships-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-functions-dax/info-view-relationships-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-functions-dax/info-view-tables-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-functions-dax/info-view-tables-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-columns-function-dax/dax-query-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-columns-function-dax/dax-query-example-2.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-columns-function-dax/measure-example-4-visuals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-columns-function-dax/measure-example-4-visuals.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-measures-function-dax/dax-query-example-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-measures-function-dax/dax-query-example-1.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-measures-function-dax/dax-query-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-measures-function-dax/dax-query-example-2.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-measures-function-dax/measure-example-4-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-measures-function-dax/measure-example-4-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-measures-function-dax/measure-example-4-visuals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-measures-function-dax/measure-example-4-visuals.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-relationships-function-dax/dax-query-example-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-relationships-function-dax/dax-query-example-1.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-relationships-function-dax/dax-query-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-relationships-function-dax/dax-query-example-2.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-relationships-function-dax/measure-example-4-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-relationships-function-dax/measure-example-4-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-relationships-function-dax/measure-example-4-visuals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-relationships-function-dax/measure-example-4-visuals.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-tables-function-dax/calculated-table-example-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-tables-function-dax/calculated-table-example-3.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-tables-function-dax/dax-query-example-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-tables-function-dax/dax-query-example-1.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-tables-function-dax/dax-query-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-tables-function-dax/dax-query-example-2.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-tables-function-dax/measure-example-4-dax-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-tables-function-dax/measure-example-4-dax-query.png -------------------------------------------------------------------------------- /query-languages/dax/media/info-view-tables-function-dax/measure-example-4-visuals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/dax/media/info-view-tables-function-dax/measure-example-4-visuals.png -------------------------------------------------------------------------------- /query-languages/dax/radians-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: RADIANS" 3 | title: "RADIANS function (DAX)" 4 | --- 5 | # RADIANS 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Converts degrees to radians. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | RADIANS(angle) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`angle`|Required. An angle in degrees that you want to convert.| 22 | 23 | ## Example 24 | 25 | |Formula|Description|Result| 26 | |-----------|---------------|----------| 27 | |`= RADIANS(270)`|270 degrees as radians (4.712389 or 3π/2 radians)|4.712389| 28 | -------------------------------------------------------------------------------- /query-languages/dax/unicode-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: UNICODE" 3 | title: "UNICODE function (DAX)" 4 | --- 5 | # UNICODE 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Returns the number (code point) corresponding to the first character of the text. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | UNICODE( ) 15 | ``` 16 | 17 | ### Parameters 18 | 19 | |Term|Definition| 20 | |--------|--------------| 21 | |`Text`|Text is the character for which you want the Unicode value.| 22 | 23 | ## Return value 24 | 25 | A numeric code for the first character in a text string. 26 | -------------------------------------------------------------------------------- /query-languages/dax/userobjectid-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: USEROBJECTID" 3 | title: "USEROBJECTID function (DAX)" 4 | --- 5 | # USEROBJECTID 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Returns the current user's Object ID from Microsoft Entra ID or security identifier (SID). 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | USEROBJECTID() 15 | ``` 16 | 17 | ### Parameters 18 | 19 | This expression has no parameters. 20 | 21 | ## Return value 22 | 23 | The current user's Object ID from Microsoft Entra ID for Power BI or Azure Analysis Services models or SID for SQL Server Analysis Services models. 24 | -------------------------------------------------------------------------------- /query-languages/dax/userprincipalname-function-dax.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: USERPRINCIPALNAME" 3 | title: "USERPRINCIPALNAME function (DAX)" 4 | --- 5 | # USERPRINCIPALNAME 6 | 7 | [!INCLUDE[applies-to-measures-columns-tables-visual-calculations](includes/applies-to-measures-columns-tables-visual-calculations.md)] 8 | 9 | Returns the user principal name. 10 | 11 | ## Syntax 12 | 13 | ```dax 14 | USERPRINCIPALNAME() 15 | ``` 16 | 17 | ### Parameters 18 | 19 | This expression has no parameters. 20 | 21 | ## Return value 22 | 23 | The userprincipalname at connection time. 24 | -------------------------------------------------------------------------------- /query-languages/m/accesscontrolkind-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: AccessControlKind.Type" 3 | title: "AccessControlKind.Type" 4 | ms.subservice: m-source 5 | --- 6 | # AccessControlKind.Type 7 | 8 | ## Definition 9 | 10 | Specifies the kind of access control. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|---------------| 16 | |**AccessControlKind.Deny**|0|Access is denied.| 17 | |**AccessControlKind.Allow**|1|Access is allowed.| 18 | 19 | ## Applies to 20 | 21 | * [Accessing data functions](accessing-data-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/action-witherrorcontext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Action.WithErrorContext" 3 | title: "Action.WithErrorContext" 4 | ms.subservice: m-source 5 | --- 6 | # Action.WithErrorContext 7 | 8 | ## Syntax 9 | 10 |
11 | Action.WithErrorContext(action as action, context as text) as action
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/activedirectory-domains.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ActiveDirectory.Domains" 3 | title: "ActiveDirectory.Domains" 4 | ms.subservice: m-source 5 | --- 6 | # ActiveDirectory.Domains 7 | 8 | ## Syntax 9 | 10 |
11 | ActiveDirectory.Domains(optional forestRootDomainName as nullable text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of Active Directory domains in the same forest as the specified domain or of the current machine's domain if none is specified. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-approximatelength.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.ApproximateLength" 3 | title: "Binary.ApproximateLength" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.ApproximateLength 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.ApproximateLength(binary as nullable binary) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the approximate length of `binary`, or an error if the data source doesn't support an approximate length. 17 | 18 | ## Example 1 19 | 20 | Get the approximate length of the binary value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Binary.ApproximateLength(Binary.FromText("i45WMlSKjQUA", BinaryEncoding.Base64)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `9` 31 | -------------------------------------------------------------------------------- /query-languages/m/binary-buffer.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.Buffer" 3 | title: "Binary.Buffer" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.Buffer 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.Buffer(binary as nullable binary) as nullable binary
12 | 
13 | 14 | ## About 15 | 16 | Buffers the binary value in memory. The result of this call is a stable binary value, which means it will have a deterministic length and order of bytes. 17 | 18 | ## Example 1 19 | 20 | Create a stable version of the binary value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Binary.Buffer(Binary.FromList({0..10})) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#binary({0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10})` 31 | 32 | -------------------------------------------------------------------------------- /query-languages/m/binary-combine.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.Combine" 3 | title: "Binary.Combine" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.Combine 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.Combine(binaries as list) as binary
12 | 
13 | 14 | ## About 15 | 16 | Combines a list of binaries into a single binary. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-fromlist.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.FromList" 3 | title: "Binary.FromList" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.FromList 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.FromList(list as list) as binary
12 | 
13 | 14 | ## About 15 | 16 | Converts a list of numbers into a binary value. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-length.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.Length" 3 | title: "Binary.Length" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.Length 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.Length(binary as nullable binary) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of characters. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-split.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.Split" 3 | title: "Binary.Split" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.Split 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.Split(binary as binary, pageSize as number) as list
12 | 
13 | 14 | ## About 15 | 16 | Splits `binary` into a list of binaries where the first element of the output list is a binary containing the first `pageSize` bytes from the source binary, the next element of the output list is a binary containing the next `pageSize` bytes from the source binary, and so on. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-tolist.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.ToList" 3 | title: "Binary.ToList" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.ToList 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.ToList(binary as binary) as list
12 | 
13 | 14 | ## About 15 | 16 | Converts a binary value into a list of numbers. 17 | -------------------------------------------------------------------------------- /query-languages/m/binary-totext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.ToText" 3 | title: "Binary.ToText" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.ToText 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.ToText(binary as nullable binary, optional encoding as nullable number) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of converting a binary list of numbers `binary` into a text value. Optionally, `encoding` may be specified to indicate the encoding to be used in the text value produced The following `BinaryEncoding` values may be used for `encoding`. 17 | 18 | * `BinaryEncoding.Base64`: Base 64 encoding 19 | * `BinaryEncoding.Hex`: Hex encoding 20 | -------------------------------------------------------------------------------- /query-languages/m/binary-viewerror.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Binary.ViewError" 3 | title: "Binary.ViewError" 4 | ms.subservice: m-source 5 | --- 6 | # Binary.ViewError 7 | 8 | ## Syntax 9 | 10 |
11 | Binary.ViewError(errorRecord as record) as record
12 | 
13 | 14 | ## About 15 | 16 | Creates a modified error record from `errorRecord` which won't trigger a fallback when thrown by a handler defined on a view (via [Binary.View](binary-view.md)). 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryencoding-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryEncoding.Type" 3 | title: "BinaryEncoding.Type" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryEncoding.Type 7 | 8 | ## Definition 9 | 10 | Specifies the type of binary encoding. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|-------------| 16 | |**BinaryEncoding.Base64**|0|Constant to use as the encoding type when base-64 encoding is required.| 17 | |**BinaryEncoding.Hex**|1|Constant to use as the encoding type when hexadecimal encoding is required.| 18 | 19 | ## Applies to 20 | 21 | * [Binary functions](binary-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-7bitencodedsignedinteger.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.7BitEncodedSignedInteger" 3 | title: "BinaryFormat.7BitEncodedSignedInteger" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.7BitEncodedSignedInteger 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.7BitEncodedSignedInteger(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 64-bit signed integer that was encoded using a 7-bit variable-length encoding. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-7bitencodedunsignedinteger.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.7BitEncodedUnsignedInteger" 3 | title: "BinaryFormat.7BitEncodedUnsignedInteger" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.7BitEncodedUnsignedInteger 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.7BitEncodedUnsignedInteger(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 64-bit unsigned integer that was encoded using a 7-bit variable-length encoding. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-binary.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Binary" 3 | title: "BinaryFormat.Binary" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Binary 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Binary(optional length as any) as function
12 | 
13 | 14 | ## About 15 | 16 | Returns a binary format that reads a binary value. If `length` is specified, the binary value will contain that many bytes. If `length` is not specified, the binary value will contain the remaining bytes. The `length` can be specified either as a number, or as a binary format of the length that precedes the binary data. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-byte.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Byte" 3 | title: "BinaryFormat.Byte" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Byte 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Byte(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads an 8-bit unsigned integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-byteorder.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.ByteOrder" 3 | title: "BinaryFormat.ByteOrder" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.ByteOrder 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.ByteOrder(binaryFormat as function, byteOrder as number) as function
12 | 
13 | 14 | ## About 15 | 16 | Returns a binary format with the byte order specified by `binaryFormat`. The default byte order is `ByteOrder.BigEndian`. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-decimal.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Decimal" 3 | title: "BinaryFormat.Decimal" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Decimal 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Decimal(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a .NET 16-byte decimal value. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-double.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Double" 3 | title: "BinaryFormat.Double" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Double 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Double(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads an 8-byte IEEE double-precision floating point value. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-null.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Null" 3 | title: "BinaryFormat.Null" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Null 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Null(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads zero bytes and returns null. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-signedinteger16.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.SignedInteger16" 3 | title: "BinaryFormat.SignedInteger16" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.SignedInteger16 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.SignedInteger16(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 16-bit signed integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-signedinteger32.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.SignedInteger32" 3 | title: "BinaryFormat.SignedInteger32" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.SignedInteger32 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.SignedInteger32(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 32-bit signed integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-signedinteger64.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.SignedInteger64" 3 | title: "BinaryFormat.SignedInteger64" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.SignedInteger64 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.SignedInteger64(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 64-bit signed integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-single.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.Single" 3 | title: "BinaryFormat.Single" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.Single 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.Single(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 4-byte IEEE single-precision floating point value. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-unsignedinteger16.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.UnsignedInteger16" 3 | title: "BinaryFormat.UnsignedInteger16" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.UnsignedInteger16 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.UnsignedInteger16(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 16-bit unsigned integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-unsignedinteger32.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.UnsignedInteger32" 3 | title: "BinaryFormat.UnsignedInteger32" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.UnsignedInteger32 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.UnsignedInteger32(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 32-bit unsigned integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryformat-unsignedinteger64.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryFormat.UnsignedInteger64" 3 | title: "BinaryFormat.UnsignedInteger64" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryFormat.UnsignedInteger64 7 | 8 | ## Syntax 9 | 10 |
11 | BinaryFormat.UnsignedInteger64(binary as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | A binary format that reads a 64-bit unsigned integer. 17 | -------------------------------------------------------------------------------- /query-languages/m/binaryoccurrence-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BinaryOccurrence.Type" 3 | title: "BinaryOccurrence.Type" 4 | ms.subservice: m-source 5 | --- 6 | # BinaryOccurrence.Type 7 | 8 | ## Definition 9 | 10 | Specifies how many times the item is expected to appear in the group. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|-------------| 16 | |**BinaryOccurrence.Optional**|0|The item is expected to appear zero or one time in the input.| 17 | |**BinaryOccurrence.Required**|1|The item is expected to appear once in the input.| 18 | |**BinaryOccurrence.Repeating**|2|The item is expected to appear zero or more times in the input.| 19 | 20 | ## Applies to 21 | 22 | * [Binary functions](binary-functions.md) 23 | -------------------------------------------------------------------------------- /query-languages/m/breadcrumb/toc.yml: -------------------------------------------------------------------------------- 1 | - name: Power Query M 2 | tocHref: /powerquery-m/ 3 | topicHref: /powerquery-m/index 4 | -------------------------------------------------------------------------------- /query-languages/m/buffermode-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: BufferMode.Type" 3 | title: "BufferMode.Type" 4 | ms.subservice: m-source 5 | --- 6 | # BufferMode.Type 7 | 8 | ## Definition 9 | 10 | Describes the type of buffering to be performed. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|---------------| 16 | |**BufferMode.Eager**|1|The entire value is immediately buffered in memory before continuing.| 17 | |**BufferMode.Delayed**|2|The type of the value is computed immediately but its contents aren't buffered until data is needed, at which point the entire value is immediately buffered.| 18 | 19 | ## Applies to 20 | 21 | * [Accessing data functions](accessing-data-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/byteorder-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ByteOrder.Type" 3 | title: "ByteOrder.Type" 4 | ms.subservice: m-source 5 | --- 6 | # ByteOrder.Type 7 | 8 | ## Definition 9 | 10 | Specifies the byte order. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | -- | --------- | 16 | |**ByteOrder.LittleEndian**|0|The least significant byte appears first in Little Endian byte order.| 17 | |**ByteOrder.BigEndian**|1|The most significant byte appears first in Big Endian byte order.| 18 | 19 | ## Remarks 20 | 21 | The allowed values for this enumeration are possible values for the `byteOrder` parameter in [BinaryFormat.ByteOrder](binaryformat-byteorder.md). 22 | 23 | ## Applies to 24 | 25 | * [Binary functions](binary-functions.md) 26 | -------------------------------------------------------------------------------- /query-languages/m/cdm-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cdm.Contents" 3 | title: "Cdm.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # Cdm.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | Cdm.Contents(table as table) as table
12 | 
13 | 14 | ## About 15 | 16 | This function is unavailable in the current context. 17 | -------------------------------------------------------------------------------- /query-languages/m/csvstyle-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: CsvStyle.Type" 3 | title: "CsvStyle.Type" 4 | ms.subservice: m-source 5 | --- 6 | # CsvStyle.Type 7 | 8 | ## Definition 9 | 10 | Specifies the significance of quotes in CSV documents. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|----------------| 16 | |**CsvStyle.QuoteAfterDelimiter**|0|Quotes in a field are only significant immediately following the delimiter.| 17 | |**CsvStyle.QuoteAlways**|1|Quotes in a field are always significant regardless of where they appear.| 18 | 19 | ## Applies to 20 | 21 | * [Accessing data functions](accessing-data-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/cube-addmeasurecolumn.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.AddMeasureColumn" 3 | title: "Cube.AddMeasureColumn" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.AddMeasureColumn 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.AddMeasureColumn(cube as table, column as text, measureSelector as any) as table
12 | 
13 | 14 | ## About 15 | 16 | Adds a column with the name `column` to the `cube` that contains the results of the measure `measureSelector` applied in the row context of each row. Measure application is affected by changes to dimension granularity and slicing. Measure values will be adjusted after certain cube operations are performed. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-applyparameter.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.ApplyParameter" 3 | title: "Cube.ApplyParameter" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.ApplyParameter 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.ApplyParameter(cube as table, parameter as any, optional arguments as nullable list) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a cube after applying `parameter` with `arguments` to `cube`. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-attributememberid.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.AttributeMemberId" 3 | title: "Cube.AttributeMemberId" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.AttributeMemberId 7 | 8 | ## Syntax 9 | 10 |
Cube.AttributeMemberId(attribute as any) as any
11 | 
12 | 13 | ## About 14 | 15 | Returns the unique member identifier from a member property value. `attribute`. Returns null for any other values. 16 | -------------------------------------------------------------------------------- /query-languages/m/cube-attributememberproperty.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.AttributeMemberProperty" 3 | title: "Cube.AttributeMemberProperty" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.AttributeMemberProperty 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.AttributeMemberProperty(attribute as any, propertyName as text) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the property `propertyName` of dimension attribute `attribute`. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-collapseandremovecolumns.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.CollapseAndRemoveColumns" 3 | title: "Cube.CollapseAndRemoveColumns" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.CollapseAndRemoveColumns 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.CollapseAndRemoveColumns(cube as table, columnNames as list) as table
12 | 
13 | 14 | ## About 15 | 16 | Changes the dimensional granularity of the filter context for the `cube` by collapsing the attributes mapped to the specified columns `columnNames`. The columns are also removed from the tabular view of the cube. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-dimensions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.Dimensions" 3 | title: "Cube.Dimensions" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.Dimensions 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.Dimensions(cube as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing the set of available dimensions within the `cube`. Each dimension is a table containing a set of dimension attributes and each dimension attribute is represented as a column in the dimension table. Dimensions can be expanded in the cube using [Cube.AddAndExpandDimensionColumn](cube-addandexpanddimensioncolumn.md). 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-displayfolders.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.DisplayFolders" 3 | title: "Cube.DisplayFolders" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.DisplayFolders 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.DisplayFolders(cube as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a nested tree of tables representing the display folder hierarchy of the objects (for example, dimensions and measures) available for use in the `cube`. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-measureproperties.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.MeasureProperties" 3 | title: "Cube.MeasureProperties" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.MeasureProperties 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.MeasureProperties(cube as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing the set of available properties for measures that are expanded in the cube. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-measureproperty.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.MeasureProperty" 3 | title: "Cube.MeasureProperty" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.MeasureProperty 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.MeasureProperty(measure as any, propertyName as text) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the property `propertyName` of measure `measure`. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-measures.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.Measures" 3 | title: "Cube.Measures" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.Measures 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.Measures(cube as any) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing the set of available measures within the `cube`. Each measure is represented as a function. Measures can be applied to the cube using Cube.AddMeasureColumn. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-parameters.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.Parameters" 3 | title: "Cube.Parameters" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.Parameters 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.Parameters(cube as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing the set of parameters that can be applied to `cube`. Each parameter is a function that can be invoked to get `cube` with the parameter and its arguments applied. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-properties.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.Properties" 3 | title: "Cube.Properties" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.Properties 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.Properties(cube as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing the set of available properties for dimensions that are expanded in the cube. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-propertykey.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.PropertyKey" 3 | title: "Cube.PropertyKey" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.PropertyKey 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.PropertyKey(property as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the key of property `property`. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-replacedimensions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.ReplaceDimensions" 3 | title: "Cube.ReplaceDimensions" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.ReplaceDimensions 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.ReplaceDimensions(cube as table, dimensions as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Replaces the set of dimensions returned by `Cube.Dimensions`. For example, this function can be used to add an ID column to a dimension attribute, so that the data source can group on the ID rather than the displayed value. 17 | -------------------------------------------------------------------------------- /query-languages/m/cube-transform.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Cube.Transform" 3 | title: "Cube.Transform" 4 | ms.subservice: m-source 5 | --- 6 | # Cube.Transform 7 | 8 | ## Syntax 9 | 10 |
11 | Cube.Transform(cube as table, transforms as list) as table
12 | 
13 | 14 | ## About 15 | 16 | Applies the list cube functions, `transforms`, on the `cube`. 17 | -------------------------------------------------------------------------------- /query-languages/m/culture-current.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Culture.Current" 3 | title: "Culture.Current" 4 | ms.subservice: m-source 5 | --- 6 | # Culture.Current 7 | 8 | ## About 9 | 10 | Returns the name of the current culture for the application. 11 | 12 | ## Related content 13 | 14 | * [How culture affects text formatting](how-culture-affects-text-formatting.md) 15 | -------------------------------------------------------------------------------- /query-languages/m/date-day.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.Day" 3 | title: "Date.Day" 4 | ms.subservice: m-source 5 | --- 6 | # Date.Day 7 | 8 | ## Syntax 9 | 10 |
11 | Date.Day(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the day component of a `date`, `datetime`, or `datetimezone` value. 17 | 18 | * `dateTime`: A `date`, `datetime`, or `datetimezone` value from which the day component is extracted. 19 | 20 | ## Example 1 21 | 22 | Get the day component of a `date`, `datetime`, or `datetimezone` value representing the date and time of 5/14/2011 05:00:00 PM. 23 | 24 | **Usage** 25 | 26 | ```powerquery-m 27 | Date.Day(#datetime(2011, 5, 14, 17, 0, 0)) 28 | ``` 29 | 30 | **Output** 31 | 32 | `14` 33 | -------------------------------------------------------------------------------- /query-languages/m/date-dayofyear.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.DayOfYear" 3 | title: "Date.DayOfYear" 4 | ms.subservice: m-source 5 | --- 6 | # Date.DayOfYear 7 | 8 | ## Syntax 9 | 10 |
11 | Date.DayOfYear(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns a number representing the day of the year in the provided `date`, `datetime`, or `datetimezone` value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | The day of the year for March 1st, 2011. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.DayOfYear(#date(2011, 03, 01)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `60` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-isleapyear.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.IsLeapYear" 3 | title: "Date.IsLeapYear" 4 | ms.subservice: m-source 5 | --- 6 | # Date.IsLeapYear 7 | 8 | ## Syntax 9 | 10 |
  
11 | Date.IsLeapYear(dateTime as any) as nullable logical 
12 | 
13 | 14 | ## About 15 | 16 | Indicates whether the given datetime value `dateTime` falls in is a leap year. 17 | 18 | * `dateTime`: A `date`, `datetime`, or `datetimezone` value to be evaluated. 19 | 20 | ## Example 1 21 | 22 | Determine if the year 2012, as represented by `#date(2012, 01, 01)` is a leap year. 23 | 24 | **Usage** 25 | 26 | ```powerquery-m 27 | Date.IsLeapYear(#date(2012, 01, 01)) 28 | ``` 29 | 30 | **Output** 31 | 32 | `true` 33 | -------------------------------------------------------------------------------- /query-languages/m/date-month.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.Month" 3 | title: "Date.Month" 4 | ms.subservice: m-source 5 | --- 6 | # Date.Month 7 | 8 | ## Syntax 9 | 10 |
11 | Date.Month(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the month component of the provided `datetime` value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | Find the month in #datetime(2011, 12, 31, 9, 15, 36). 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.Month(#datetime(2011, 12, 31, 9, 15, 36)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `12` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-quarterofyear.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.QuarterOfYear" 3 | title: "Date.QuarterOfYear" 4 | ms.subservice: m-source 5 | --- 6 | # Date.QuarterOfYear 7 | 8 | ## Syntax 9 | 10 |
11 | Date.QuarterOfYear(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns a number from 1 to 4 indicating which quarter of the year the date `dateTime` falls in. `dateTime` can be a `date`, `datetime`, or `datetimezone` value. 17 | 18 | ## Example 1 19 | 20 | Find which quarter of the year the date #date(2011, 12, 31) falls in. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.QuarterOfYear(#date(2011, 12, 31)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `4` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-startofday.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.StartOfDay" 3 | title: "Date.StartOfDay" 4 | ms.subservice: m-source 5 | --- 6 | # Date.StartOfDay 7 | 8 | ## Syntax 9 | 10 |
 
11 | Date.StartOfDay(dateTime as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the start of the day represented by `dateTime`. `dateTime` must be a `date`, `datetime`, or `datetimezone` value. 17 | 18 | ## Example 1 19 | 20 | Find the start of the day for October 10th, 2011, 8:00AM. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.StartOfDay(#datetime(2011, 10, 10, 8, 0, 0)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetime(2011, 10, 10, 0, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-startofmonth.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.StartOfMonth" 3 | title: "Date.StartOfMonth" 4 | ms.subservice: m-source 5 | --- 6 | # Date.StartOfMonth 7 | 8 | ## Syntax 9 | 10 |
11 | Date.StartOfMonth(dateTime as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the start of the month that contains `dateTime`. `dateTime` must be a `date` or `datetime` value. 17 | 18 | ## Example 1 19 | 20 | Find the start of the month for October 10th, 2011, 8:10:32AM. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.StartOfMonth(#datetime(2011, 10, 10, 8, 10, 32)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetime(2011, 10, 1, 0, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-startofquarter.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.StartOfQuarter" 3 | title: "Date.StartOfQuarter" 4 | ms.subservice: m-source 5 | --- 6 | # Date.StartOfQuarter 7 | 8 | ## Syntax 9 | 10 |
11 | Date.StartOfQuarter(dateTime as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the start of the quarter that contains `dateTime`. `dateTime` must be a `date`, `datetime`, or `datetimezone` value. 17 | 18 | ## Example 1 19 | 20 | Find the start of the quarter for October 10th, 2011, 8:00AM. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.StartOfQuarter(#datetime(2011, 10, 10, 8, 0, 0)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetime(2011, 10, 1, 0, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-startofyear.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.StartOfYear" 3 | title: "Date.StartOfYear" 4 | ms.subservice: m-source 5 | --- 6 | # Date.StartOfYear 7 | 8 | ## Syntax 9 | 10 |
11 | Date.StartOfYear(dateTime as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the start of the year that contains `dateTime`. `dateTime` must be a `date`, `datetime`, or `datetimezone` value. 17 | 18 | ## Example 1 19 | 20 | Find the start of the year for October 10th, 2011, 8:10:32AM. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Date.StartOfYear(#datetime(2011, 10, 10, 8, 10, 32)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetime(2011, 1, 1, 0, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/date-year.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Date.Year" 3 | title: "Date.Year" 4 | ms.subservice: m-source 5 | --- 6 | # Date.Year 7 | 8 |
 9 | Date.Year(dateTime as any) as nullable number
10 | 
11 | 12 | ## About 13 | 14 | Returns the year component of the provided `datetime` value, `dateTime`. 15 | 16 | ## Example 1 17 | 18 | Find the year in #datetime(2011, 12, 31, 9, 15, 36). 19 | 20 | **Usage** 21 | 22 | ```powerquery-m 23 | Date.Year(#datetime(2011, 12, 31, 9, 15, 36)) 24 | ``` 25 | 26 | **Output** 27 | 28 | `2011` 29 | -------------------------------------------------------------------------------- /query-languages/m/datetime-date.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTime.Date" 3 | title: "DateTime.Date" 4 | ms.subservice: m-source 5 | --- 6 | # DateTime.Date 7 | 8 | ## Syntax 9 | 10 |
11 | DateTime.Date(dateTime as any) as nullable date 
12 | 
13 | 14 | ## About 15 | 16 | Returns the date component of the `dateTime` parameter if the parameter is a `date`, `datetime`, or `datetimezone` value, or `null` if the parameter is `null`. 17 | 18 | ## Example 1 19 | 20 | Find date value of #datetime(2010, 12, 31, 11, 56, 02). 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | DateTime.Date(#datetime(2010, 12, 31, 11, 56, 02)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#date(2010, 12, 31)` 31 | -------------------------------------------------------------------------------- /query-languages/m/datetime-fixedlocalnow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTime.FixedLocalNow" 3 | title: "DateTime.FixedLocalNow" 4 | ms.subservice: m-source 5 | --- 6 | # DateTime.FixedLocalNow 7 | 8 | ## Syntax 9 | 10 |
11 | DateTime.FixedLocalNow() as datetime
12 | 
13 | 14 | ## About 15 | 16 | Returns a `datetime` value set to the current date and time on the system. This value is fixed and will not change with successive calls, unlike [DateTime.LocalNow](datetime-localnow.md), which may return different values over the course of execution of an expression. 17 | -------------------------------------------------------------------------------- /query-languages/m/datetime-time.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTime.Time" 3 | title: "DateTime.Time" 4 | ms.subservice: m-source 5 | --- 6 | # DateTime.Time 7 | 8 | ## Syntax 9 | 10 |
11 | DateTime.Time(dateTime as any) as nullable time
12 | 
13 | 14 | ## About 15 | 16 | Returns the time part of the given datetime value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | Find the time value of #datetime(2010, 12, 31, 11, 56, 02). 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | DateTime.Time(#datetime(2010, 12, 31, 11, 56, 02)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#time(11, 56, 2)` 31 | -------------------------------------------------------------------------------- /query-languages/m/datetimezone-fixedlocalnow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTimeZone.FixedLocalNow" 3 | title: "DateTimeZone.FixedLocalNow" 4 | ms.subservice: m-source 5 | --- 6 | # DateTimeZone.FixedLocalNow 7 | 8 | ## Syntax 9 | 10 |
11 | DateTimeZone.FixedLocalNow() as datetimezone
12 | 
13 | 14 | ## About 15 | 16 | Returns a `datetime` value set to the current date and time on the system. The returned value contains timezone information representing the local timezone. This value is fixed and will not change with successive calls, unlike [DateTimeZone.LocalNow](datetimezone-localnow.md), which may return different values over the course of execution of an expression. 17 | -------------------------------------------------------------------------------- /query-languages/m/datetimezone-fixedutcnow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTimeZone.FixedUtcNow" 3 | title: "DateTimeZone.FixedUtcNow" 4 | ms.subservice: m-source 5 | --- 6 | # DateTimeZone.FixedUtcNow 7 | 8 | ## Syntax 9 | 10 |
11 | DateTimeZone.FixedUtcNow() as datetimezone
12 | 
13 | 14 | ## About 15 | 16 | Returns the current date and time in UTC (the GMT timezone). This value is fixed and will not change with successive calls. 17 | -------------------------------------------------------------------------------- /query-languages/m/datetimezone-localnow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTimeZone.LocalNow" 3 | title: "DateTimeZone.LocalNow" 4 | ms.subservice: m-source 5 | --- 6 | # DateTimeZone.LocalNow 7 | 8 | ## Syntax 9 | 10 |
11 | DateTimeZone.LocalNow() as datetimezone
12 | 
13 | 14 | ## About 15 | 16 | Returns a `datetimezone` value set to the current date and time on the system. The returned value contains timezone information representing the local timezone. 17 | -------------------------------------------------------------------------------- /query-languages/m/datetimezone-utcnow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DateTimeZone.UtcNow" 3 | title: "DateTimeZone.UtcNow" 4 | ms.subservice: m-source 5 | --- 6 | # DateTimeZone.UtcNow 7 | 8 | ## Syntax 9 | 10 |
11 | DateTimeZone.UtcNow() as datetimezone
12 | 
13 | 14 | ## About 15 | 16 | Returns the current date and time in UTC (the GMT timezone). 17 | 18 | ## Example 1 19 | 20 | Get the current date & time in UTC. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | DateTimeZone.UtcNow() 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetimezone(2011, 8, 16, 23, 34, 37.745, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/day-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Day.Type" 3 | title: "Day.Type" 4 | ms.subservice: m-source 5 | --- 6 | # Day.Type 7 | 8 | ## Definition 9 | 10 | Represents the day of the week. 11 | 12 | ## Allowed values 13 | 14 | | Name | Value | Description | 15 | | ----------------- | -- | -----------| 16 | | **Day.Sunday** | 0 |Represents Sunday. | 17 | | **Day.Monday** | 1 |Represents Monday. | 18 | | **Day.Tuesday** | 2 |Represents Tuesday. | 19 | | **Day.Wednesday** | 3 |Represents Wednesday. | 20 | | **Day.Thursday** | 4 |Represents Thursday. | 21 | | **Day.Friday** | 5 |Represents Friday. | 22 | | **Day.Saturday** | 6 |Represents Saturday. | 23 | 24 | ## Applies to 25 | 26 | * [Date functions](date-functions.md) 27 | -------------------------------------------------------------------------------- /query-languages/m/deltalake-metadata.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DeltaLake.Metadata" 3 | title: "DeltaLake.Metadata" 4 | ms.subservice: m-source 5 | --- 6 | # DeltaLake.Metadata 7 | 8 | ## Syntax 9 | 10 |
11 | DeltaLake.Metadata(table as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Given a Delta Lake table, returns the log entries for that table. -------------------------------------------------------------------------------- /query-languages/m/deltalake-table.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DeltaLake.Table" 3 | title: "DeltaLake.Table" 4 | ms.subservice: m-source 5 | --- 6 | # DeltaLake.Table 7 | 8 | ## Syntax 9 | 10 |
11 | DeltaLake.Table(directory as table, optional options as nullable record) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the Delta Lake table. 17 | -------------------------------------------------------------------------------- /query-languages/m/diagnostics-activityid.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Diagnostics.ActivityId" 3 | title: "Diagnostics.ActivityId" 4 | ms.subservice: m-source 5 | --- 6 | # Diagnostics.ActivityId 7 | 8 | ## Syntax 9 | 10 |
11 | Diagnostics.ActivityId() as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns an opaque identifier for the currently-running evaluation. 17 | -------------------------------------------------------------------------------- /query-languages/m/diagnostics-correlationid.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Diagnostics.CorrelationId" 3 | title: "Diagnostics.CorrelationId" 4 | ms.subservice: m-source 5 | --- 6 | # Diagnostics.CorrelationId 7 | 8 | ## Syntax 9 | 10 |
11 | Diagnostics.CorrelationId() as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns an opaque identifier to correlate incoming requests with outgoing ones. 17 | -------------------------------------------------------------------------------- /query-languages/m/directquerycapabilities-from.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: DirectQueryCapabilities.From" 3 | title: "DirectQueryCapabilities.From" 4 | ms.subservice: m-source 5 | --- 6 | # DirectQueryCapabilities.From 7 | 8 | ## Syntax 9 | 10 |
11 | DirectQueryCapabilities.From(value as any) as table
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/duration-days.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.Days" 3 | title: "Duration.Days" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.Days 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.Days(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the days portion of `duration`. 17 | 18 | ## Example 1 19 | 20 | Extract the number of days between two dates. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.Days(#date(2022, 3, 4) - #date(2022, 2, 25)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `7` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-hours.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.Hours" 3 | title: "Duration.Hours" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.Hours 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.Hours(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the hours portion of `duration`. 17 | 18 | ## Example 1 19 | 20 | Extract the hours from a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.Hours(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `4` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-minutes.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.Minutes" 3 | title: "Duration.Minutes" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.Minutes 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.Minutes(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the minutes portion of `duration`. 17 | 18 | ## Example 1 19 | 20 | Extract the minutes from a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.Minutes(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `3` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-seconds.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.Seconds" 3 | title: "Duration.Seconds" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.Seconds 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.Seconds(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the seconds portion of `duration`. 17 | 18 | ## Example 1 19 | 20 | Extract the seconds from a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.Seconds(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `2` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-totaldays.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.TotalDays" 3 | title: "Duration.TotalDays" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.TotalDays 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.TotalDays(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the total days spanned by `duration`. 17 | 18 | ## Example 1 19 | 20 | Find the total days spanned by a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.TotalDays(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `5.1687731481481478` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-totalhours.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.TotalHours" 3 | title: "Duration.TotalHours" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.TotalHours 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.TotalHours(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the total hours spanned by `duration`. 17 | 18 | ## Example 1 19 | 20 | Find the total hours spanned by a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.TotalHours(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `124.05055555555555` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-totalminutes.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.TotalMinutes" 3 | title: "Duration.TotalMinutes" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.TotalMinutes 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.TotalMinutes(duration as nullable duration) as nullable number 
12 | 
13 | 14 | ## About 15 | 16 | Returns the total minutes spanned by `duration`. 17 | 18 | ## Example 1 19 | 20 | Find the total minutes spanned by a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.TotalMinutes(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `7443.0333333333338` 31 | -------------------------------------------------------------------------------- /query-languages/m/duration-totalseconds.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Duration.TotalSeconds" 3 | title: "Duration.TotalSeconds" 4 | ms.subservice: m-source 5 | --- 6 | # Duration.TotalSeconds 7 | 8 | ## Syntax 9 | 10 |
11 | Duration.TotalSeconds(duration as nullable duration) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the total seconds spanned by `duration`. 17 | 18 | ## Example 1 19 | 20 | Find the total seconds spanned by a duration value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Duration.TotalSeconds(#duration(5, 4, 3, 2)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `446582` 31 | -------------------------------------------------------------------------------- /query-languages/m/dynamic-values.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Dynamic values" 3 | title: "Dynamic values" 4 | --- 5 | # Dynamic values 6 | 7 | The Power Query M formula language includes these dynamic values. 8 | 9 | ## List of dynamic values 10 | 11 | |Name|Description| 12 | |------------|---------------| 13 | |[Culture.Current](culture-current.md)|Returns the name of the current culture for the application.| 14 | |[TimeZone.Current](timezone-current.md)|Returns the name of the current time zone for the application.| 15 | 16 | ## See also 17 | 18 | * [Comparer functions](comparer-functions.md) 19 | * [DateTimeZone functions](datetimezone-functions.md) 20 | -------------------------------------------------------------------------------- /query-languages/m/embedded-value.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Embedded.Value" 3 | title: "Embedded.Value" 4 | ms.subservice: m-source 5 | --- 6 | # Embedded.Value 7 | 8 | ## Syntax 9 | 10 |
11 | Embedded.Value(value as any, path as text) as any
12 | 
13 | 14 | ## About 15 | 16 | Accesses a value by name in an embedded mashup. 17 | -------------------------------------------------------------------------------- /query-languages/m/error-record.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Error.Record" 3 | title: "Error.Record" 4 | ms.subservice: m-source 5 | --- 6 | # Error.Record 7 | 8 | ## Syntax 9 | 10 |
11 | Error.Record(reason as text, optional message as nullable text, optional detail as any, optional parameters as nullable list, optional errorCode as nullable text) as record
12 | 
13 | 14 | ## About 15 | 16 | Returns an error record from the provided text values for reason, message, detail, and error code. 17 | -------------------------------------------------------------------------------- /query-languages/m/essbase-cubes.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Essbase.Cubes" 3 | title: "Essbase.Cubes" 4 | ms.subservice: m-source 5 | --- 6 | # Essbase.Cubes 7 | 8 | ## Syntax 9 | 10 |
11 | Essbase.Cubes(url as text, optional options as nullable record) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table of cubes grouped by Essbase server from an Essbase instance at APS server `url`. An optional record parameter, `options`, may be specified to control the following options: 17 | 18 | * `CommandTimeout`: A duration that controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes. 19 | -------------------------------------------------------------------------------- /query-languages/m/excel-currentworkbook.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Excel.CurrentWorkbook" 3 | title: "Excel.CurrentWorkbook" 4 | ms.subservice: m-source 5 | --- 6 | # Excel.CurrentWorkbook 7 | 8 | ## Syntax 9 | 10 |
11 | Excel.CurrentWorkbook() as table
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the current Excel workbook. It returns tables, named ranges, and dynamic arrays. Unlike [Excel.Workbook](excel-workbook.md), it does not return sheets. 17 | -------------------------------------------------------------------------------- /query-languages/m/excel-shapetable.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Excel.ShapeTable" 3 | title: "Excel.ShapeTable" 4 | ms.subservice: m-source 5 | --- 6 | # Excel.ShapeTable 7 | 8 | ## Syntax 9 | 10 |
11 | Excel.ShapeTable(table as table, optional options as nullable record) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/exchange-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Exchange.Contents" 3 | title: "Exchange.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # Exchange.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | Exchange.Contents (optional mailboxAddress as nullable text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table of contents from the Microsoft Exchange account `mailboxAddress`. If `mailboxAddress` is not specified, the default account for the credential will be used. 17 | -------------------------------------------------------------------------------- /query-languages/m/expression-functions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Expression functions" 3 | title: "Expression functions" 4 | ms.date: 5/16/2022 5 | ms.custom: "nonautomated-date" 6 | --- 7 | # Expression functions 8 | 9 | These functions allow the construction and evaluation of M code. 10 | 11 | |Name|Description| 12 | |------------|---------------| 13 | |[Expression.Constant](expression-constant.md)|Returns the M source code representation of a constant value.| 14 | |[Expression.Evaluate](expression-evaluate.md)|Returns the result of evaluating an M expression.| 15 | |[Expression.Identifier](expression-identifier.md)|Returns the M source code representation of an identifier.| 16 | -------------------------------------------------------------------------------- /query-languages/m/file-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: File.Contents" 3 | title: "File.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # File.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | File.Contents(path as text, optional options as nullable record) as binary
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the file, `path`, as binary. The `options` parameter is currently intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/folder-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Folder.Contents" 3 | title: "Folder.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # Folder.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | Folder.Contents(path as text, optional options as nullable record) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing a row for each folder and file found in the folder `path`. Each row contains properties of the folder or file and a link to its content. The `options` parameter is currently intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/folder-files.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Folder.Files" 3 | title: "Folder.Files" 4 | ms.subservice: m-source 5 | --- 6 | # Folder.Files 7 | 8 | ## Syntax 9 | 10 |
11 | Folder.Files(path as text, optional options as nullable record) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing a row for each file found in the folder `path` and all its subfolders. Each row contains properties of the file and a link to its content. The `options` parameter is currently intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/function-invoke.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Function.Invoke" 3 | title: "Function.Invoke" 4 | ms.subservice: m-source 5 | --- 6 | # Function.Invoke 7 | 8 | ## Syntax 9 | 10 |
11 | Function.Invoke(function as function, args as list) as any
12 | 
13 | 14 | ## About 15 | 16 | Invokes the given function using the specified list of arguments and returns the result. 17 | 18 | ## Example 1 19 | 20 | Invokes [Record.FieldNames](record-fieldnames.md) with one argument [A=1,B=2] 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Function.Invoke(Record.FieldNames, {[A = 1, B = 2]}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{"A", "B"}` 31 | -------------------------------------------------------------------------------- /query-languages/m/function-invokeafter.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Function.InvokeAfter" 3 | title: "Function.InvokeAfter" 4 | ms.subservice: m-source 5 | --- 6 | # Function.InvokeAfter 7 | 8 | ## Syntax 9 | 10 |
11 | Function.InvokeAfter(function as function, delay as duration) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of invoking `function` after duration `delay` has passed. 17 | -------------------------------------------------------------------------------- /query-languages/m/function-invokewitherrorcontext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Function.InvokeWithErrorContext" 3 | title: "Function.InvokeWithErrorContext" 4 | ms.subservice: m-source 5 | --- 6 | # Function.InvokeWithErrorContext 7 | 8 | ## Syntax 9 | 10 |
11 | Function.InvokeWithErrorContext(function as function, context as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/function-isdatasource.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Function.IsDataSource" 3 | title: "Function.IsDataSource" 4 | ms.subservice: m-source 5 | --- 6 | # Function.IsDataSource 7 | 8 | ## Syntax 9 | 10 |
11 | Function.IsDataSource(function as function) as logical
12 | 
13 | 14 | ## About 15 | 16 | Returns whether or not `function` is considered a data source. 17 | -------------------------------------------------------------------------------- /query-languages/m/geography-fromwellknowntext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Geography.FromWellKnownText" 3 | title: "Geography.FromWellKnownText" 4 | ms.subservice: m-source 5 | --- 6 | # Geography.FromWellKnownText 7 | 8 | ## Syntax 9 | 10 |
11 | Geography.FromWellKnownText(input as nullable text) as nullable record
12 | 
13 | 14 | ## About 15 | 16 | Translates text representing a geographic value in Well-Known Text (WKT) format into a structured record. WKT is a standard format defined by the Open Geospatial Consortium (OGC) and is the typical serialization format used by databases including SQL Server. 17 | -------------------------------------------------------------------------------- /query-languages/m/geography-towellknowntext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Geography.ToWellKnownText" 3 | title: "Geography.ToWellKnownText" 4 | ms.subservice: m-source 5 | --- 6 | # Geography.ToWellKnownText 7 | 8 | ## Syntax 9 | 10 |
11 | Geography.ToWellKnownText(input as nullable record, optional omitSRID as nullable logical) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Translates a structured geographic point value into its Well-Known Text (WKT) representation as defined by the Open Geospatial Consortium (OGC), also the serialization format used by many databases including SQL Server. 17 | -------------------------------------------------------------------------------- /query-languages/m/geographypoint-from.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: GeographyPoint.From" 3 | title: "GeographyPoint.From" 4 | ms.subservice: m-source 5 | --- 6 | # GeographyPoint.From 7 | 8 | ## Syntax 9 | 10 |
11 | GeographyPoint.From(longitude as number, latitude as number, optional z as nullable number, optional m as nullable number, optional srid as nullable number) as record
12 | 
13 | 14 | ## About 15 | 16 | Creates a record representing a geographic point from its constituent parts, such as longitude, latitude, and if present, elevation (Z) and measure (M). An optional spatial reference identifier (SRID) can be given if different from the default value (4326). 17 | -------------------------------------------------------------------------------- /query-languages/m/geometry-fromwellknowntext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Geometry.FromWellKnownText" 3 | title: "Geometry.FromWellKnownText" 4 | ms.subservice: m-source 5 | --- 6 | # Geometry.FromWellKnownText 7 | 8 | ## Syntax 9 | 10 |
11 | Geometry.FromWellKnownText(input as nullable text) as nullable record
12 | 
13 | 14 | ## About 15 | 16 | Translates text representing a geometric value in Well-Known Text (WKT) format into a structured record. WKT is a standard format defined by the Open Geospatial Consortium (OGC) and is the typical serialization format used by databases including SQL Server. 17 | -------------------------------------------------------------------------------- /query-languages/m/geometry-towellknowntext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Geometry.ToWellKnownText" 3 | title: "Geometry.ToWellKnownText" 4 | ms.subservice: m-source 5 | --- 6 | # Geometry.ToWellKnownText 7 | 8 | ## Syntax 9 | 10 |
11 | Geometry.ToWellKnownText(input as nullable record, optional omitSRID as nullable logical) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Translates a structured geometric point value into its Well-Known Text (WKT) representation as defined by the Open Geospatial Consortium (OGC), also the serialization format used by many databases including SQL Server. 17 | -------------------------------------------------------------------------------- /query-languages/m/geometrypoint-from.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: GeometryPoint.From" 3 | title: "GeometryPoint.From" 4 | ms.subservice: m-source 5 | --- 6 | # GeometryPoint.From 7 | 8 | ## Syntax 9 | 10 |
11 | GeometryPoint.From(x as number, y as number, optional z as nullable number, optional m as nullable number, optional srid as nullable number) as record
12 | 
13 | 14 | ## About 15 | 16 | Creates a record representing a geometric point from its constituent parts, such as X coordinate, Y coordinate, and if present, Z coordinate and measure (M). An optional spatial reference identifier (SRID) can be given if different from the default value (0). 17 | -------------------------------------------------------------------------------- /query-languages/m/googleanalytics-accounts.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: GoogleAnalytics.Accounts" 3 | title: "GoogleAnalytics.Accounts" 4 | ms.subservice: m-source 5 | --- 6 | # GoogleAnalytics.Accounts 7 | 8 | ## Syntax 9 | 10 |
11 | GoogleAnalytics.Accounts(optional options as nullable record) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns Google Analytics accounts that are accessible from the current credential. 17 | -------------------------------------------------------------------------------- /query-languages/m/graph-nodes.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Graph.Nodes" 3 | title: "Graph.Nodes" 4 | ms.subservice: m-source 5 | --- 6 | # Graph.Nodes 7 | 8 | ## Syntax 9 | 10 |
11 | Graph.Nodes(graph as record) as list
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/groupkind-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: GroupKind.Type" 3 | title: "GroupKind.Type" 4 | ms.subservice: m-source 5 | --- 6 | # GroupKind.Type 7 | 8 | ## Definition 9 | 10 | Specifies the kind of grouping. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**GroupKind.Local**|0| A local group is formed from a consecutive sequence of rows from an input table with the same key value.| 17 | |**GroupKind.Global**|1| A global group is formed from all rows in an input table with the same key value.| 18 | 19 | ## Applies to 20 | 21 | * [Table functions](table-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/hdfs-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Hdfs.Contents" 3 | title: "Hdfs.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # Hdfs.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | Hdfs.Contents(url as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing a row for each folder and file found at the folder URL, `url`, from a Hadoop file system. Each row contains properties of the folder or file and a link to its content. 17 | -------------------------------------------------------------------------------- /query-languages/m/hdfs-files.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Hdfs.Files" 3 | title: "Hdfs.Files" 4 | ms.subservice: m-source 5 | --- 6 | # Hdfs.Files 7 | 8 | ## Syntax 9 | 10 |
11 | Hdfs.Files(url as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing a row for each file found at the folder URL, `url`, and subfolders from a Hadoop file system. Each row contains properties of the file and a link to its content. 17 | -------------------------------------------------------------------------------- /query-languages/m/hdinsight-containers.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: HdInsight.Containers" 3 | title: "HdInsight.Containers" 4 | ms.subservice: m-source 5 | --- 6 | # HdInsight.Containers 7 | 8 | ## Syntax 9 | 10 |
11 | HdInsight.Containers(account as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a navigational table containing a row for each container found at the account URL, `account`, from an Azure storage vault. Each row contains a link to the container blobs. 17 | -------------------------------------------------------------------------------- /query-languages/m/hdinsight-contents.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: HdInsight.Contents" 3 | title: "HdInsight.Contents" 4 | ms.subservice: m-source 5 | --- 6 | # HdInsight.Contents 7 | 8 | ## Syntax 9 | 10 |
11 | HdInsight.Contents(account as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a navigational table containing a row for each container found at the account URL, `account`, from an Azure storage vault. Each row contains a link to the container blobs. 17 | -------------------------------------------------------------------------------- /query-languages/m/hdinsight-files.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: HdInsight.Files" 3 | title: "HdInsight.Files" 4 | ms.subservice: m-source 5 | --- 6 | # HdInsight.Files 7 | 8 | ## Syntax 9 | 10 |
11 | HdInsight.Files(account as text, containerName as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table containing a row for each blob file found at the container URL, `account`, from an Azure storage vault. Each row contains properties of the file and a link to its content. 17 | -------------------------------------------------------------------------------- /query-languages/m/identity-from.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Identity.From" 3 | title: "Identity.From" 4 | ms.subservice: m-source 5 | --- 6 | # Identity.From 7 | 8 | ## Syntax 9 | 10 |
11 | Identity.From(identityProvider as function, value as any) as record
12 | 
13 | 14 | ## About 15 | 16 | Creates an identity. 17 | -------------------------------------------------------------------------------- /query-languages/m/identity-ismemberof.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Identity.IsMemberOf" 3 | title: "Identity.IsMemberOf" 4 | ms.subservice: m-source 5 | --- 6 | # Identity.IsMemberOf 7 | 8 | ## Syntax 9 | 10 |
11 | Identity.IsMemberOf(identity as record, collection as record) as logical
12 | 
13 | 14 | ## About 15 | 16 | Determines whether an identity is a member of an identity collection. 17 | -------------------------------------------------------------------------------- /query-languages/m/identityprovider-default.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: IdentityProvider.Default" 3 | title: "IdentityProvider.Default" 4 | ms.subservice: m-source 5 | --- 6 | # IdentityProvider.Default 7 | 8 | ## Syntax 9 | 10 |
11 | IdentityProvider.Default() as any
12 | 
13 | 14 | ## About 15 | 16 | The default identity provider for the current host. 17 | -------------------------------------------------------------------------------- /query-languages/m/itemexpression-item.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ItemExpression.Item" 3 | title: "ItemExpression.Item" 4 | ms.subservice: m-source 5 | --- 6 | # ItemExpression.Item 7 | 8 | ## About 9 | 10 | An abstract syntax tree (AST) node representing the item in an item expression. 11 | 12 | This value is identical to [`RowExpression.Row`](rowexpression-row.md). 13 | -------------------------------------------------------------------------------- /query-languages/m/joinside-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: JoinSide.Type" 3 | title: "JoinSide.Type" 4 | ms.subservice: m-source 5 | --- 6 | # JoinSide.Type 7 | 8 | ## Definition 9 | 10 | Specifies the left or right table of a join. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**JoinSide.Left**|0| Specifies the left table of a join.| 17 | |**JoinSide.Right**|1| Specifies the right table of a join.| 18 | 19 | ## Applies to 20 | 21 | * [Table functions](table-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/lines-tobinary.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Lines.ToBinary" 3 | title: "Lines.ToBinary" 4 | ms.subservice: m-source 5 | --- 6 | # Lines.ToBinary 7 | 8 | ## Syntax 9 | 10 |
11 | Lines.ToBinary(lines as list, optional lineSeparator as nullable text, optional encoding as nullable number, optional includeByteOrderMark as nullable logical) as binary
12 | 
13 | 14 | ## About 15 | 16 | Converts a list of text into a binary value using the specified encoding and lineSeparator.The specified lineSeparator is appended to each line. If not specified then the carriage return and line feed characters are used. 17 | -------------------------------------------------------------------------------- /query-languages/m/lines-totext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Lines.ToText" 3 | title: "Lines.ToText" 4 | ms.subservice: m-source 5 | --- 6 | # Lines.ToText 7 | 8 | ## Syntax 9 | 10 |
11 | Lines.ToText(lines as list, optional lineSeparator as nullable text) as text
12 | 
13 | 14 | ## About 15 | 16 | Converts a list of text into a single text. The specified lineSeparator is appended to each line. If not specified then the carriage return and line feed characters are used. 17 | -------------------------------------------------------------------------------- /query-languages/m/list-buffer.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Buffer" 3 | title: "List.Buffer" 4 | ms.subservice: m-source 5 | --- 6 | # List.Buffer 7 | 8 | ## Syntax 9 | 10 |
11 | List.Buffer(list as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Buffers the list `list` in memory. The result of this call is a stable list. 17 | 18 | ## Example 1 19 | 20 | Create a stable copy of the list {1..10}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Buffer({1..10}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-conformtopagereader.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.ConformToPageReader" 3 | title: "List.ConformToPageReader" 4 | ms.subservice: m-source 5 | --- 6 | # List.ConformToPageReader 7 | 8 | ## Syntax 9 | 10 |
11 | List.ConformToPageReader(list as list, optional options as nullable record) as table
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/list-count.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Count" 3 | title: "List.Count" 4 | ms.subservice: m-source 5 | --- 6 | # List.Count 7 | 8 | ## Syntax 9 | 10 |
11 | List.Count(list as list) as number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of items in the list `list`. 17 | 18 | ## Example 1 19 | 20 | Find the number of values in the list {1, 2, 3}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Count({1, 2, 3}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `3` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-covariance.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Covariance" 3 | title: "List.Covariance" 4 | ms.subservice: m-source 5 | --- 6 | # List.Covariance 7 | 8 | ## Syntax 9 | 10 |
11 | List.Covariance(numberList1 as list, numberList2 as list) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the covariance between two lists, `numberList1` and `numberList2`. `numberList1` and `numberList2` must contain the same number of `number` values. 17 | 18 | ## Example 1 19 | 20 | Calculate the covariance between two lists. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Covariance({1, 2, 3}, {1, 2, 3}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `0.66666666666666607` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-findtext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.FindText" 3 | title: "List.FindText" 4 | ms.subservice: m-source 5 | --- 6 | # List.FindText 7 | 8 | ## Syntax 9 | 10 |
11 | List.FindText(list as list, text as text) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of the values from the list `list` which contained the value `text`. 17 | 18 | ## Example 1 19 | 20 | Find the text values in the list {"a", "b", "ab"} that match "a". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.FindText({"a", "b", "ab"}, "a") 26 | ``` 27 | 28 | **Output** 29 | 30 | `{"a", "ab"}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-nonnullcount.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.NonNullCount" 3 | title: "List.NonNullCount" 4 | ms.subservice: m-source 5 | --- 6 | # List.NonNullCount 7 | 8 | ## Syntax 9 | 10 |
11 | List.NonNullCount(list as list) as number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of non-null items in the list `list`. 17 | -------------------------------------------------------------------------------- /query-languages/m/list-positions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Positions" 3 | title: "List.Positions" 4 | ms.subservice: m-source 5 | --- 6 | # List.Positions 7 | 8 | ## Syntax 9 | 10 |
11 | List.Positions(list as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of offsets for the input list `list`. When using List.Transform to change a list, the list of positions can be used to give the transform access to the position. 17 | 18 | ## Example 1 19 | 20 | Find the offsets of values in the list {1, 2, 3, 4, null, 5}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Positions({1, 2, 3, 4, null, 5}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{0, 1, 2, 3, 4, 5}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-product.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Product" 3 | title: "List.Product" 4 | ms.subservice: m-source 5 | --- 6 | # List.Product 7 | 8 | ## Syntax 9 | 10 |
11 | List.Product(numbersList as list, optional precision as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the product of the non-null numbers in the list, `numbersList`. Returns null if there are no non-null values in the list. 17 | 18 | ## Example 1 19 | 20 | Find the product of the numbers in the list `{1, 2, 3, 3, 4, 5, 5}`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Product({1, 2, 3, 3, 4, 5, 5}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `1800` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-removeitems.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.RemoveItems" 3 | title: "List.RemoveItems" 4 | ms.subservice: m-source 5 | --- 6 | # List.RemoveItems 7 | 8 | ## Syntax 9 | 10 |
11 | List.RemoveItems(list1 as list, list2 as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Removes all occurrences of the given values in the `list2` from `list1`. If the values in `list2` don't exist in `list1`, the original list is returned. 17 | 18 | ## Example 1 19 | 20 | Remove the items in the list {2, 4, 6} from the list {1, 2, 3, 4, 2, 5, 5}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.RemoveItems({1, 2, 3, 4, 2, 5, 5}, {2, 4, 6}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 3, 5, 5}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-removenulls.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.RemoveNulls" 3 | title: "List.RemoveNulls" 4 | ms.subservice: m-source 5 | --- 6 | # List.RemoveNulls 7 | 8 | ## Syntax 9 | 10 |
11 | List.RemoveNulls(list as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Removes all occurrences of "null" values in the `list`. If there are no 'null' values in the list, the original list is returned. 17 | 18 | ## Example 1 19 | 20 | Remove the "null" values from the list {1, 2, 3, null, 4, 5, null, 6}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.RemoveNulls({1, 2, 3, null, 4, 5, null, 6}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 3, 4, 5, 6}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-removerange.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.RemoveRange" 3 | title: "List.RemoveRange" 4 | ms.subservice: m-source 5 | --- 6 | # List.RemoveRange 7 | 8 | ## Syntax 9 | 10 |
11 | List.RemoveRange(list as list, index as number, optional count as nullable number) as list
12 | 
13 | 14 | ## About 15 | 16 | Removes `count` values in the `list` starting at the specified position, `index`. 17 | 18 | ## Example 1 19 | 20 | Remove 3 values in the list {1, 2, 3, 4, -6, -2, -1, 5} starting at index 4. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.RemoveRange({1, 2, 3, 4, -6, -2, -1, 5}, 4, 3) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 3, 4, 5}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-repeat.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Repeat" 3 | title: "List.Repeat" 4 | ms.subservice: m-source 5 | --- 6 | # List.Repeat 7 | 8 | ## Syntax 9 | 10 |
11 | List.Repeat(list as list, count as number) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list that is `count` repetitions of the original list, `list`. 17 | 18 | ## Example 1 19 | 20 | Create a list that has {1, 2} repeated 3 times. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Repeat({1, 2}, 3) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 1, 2, 1, 2}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-replacerange.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.ReplaceRange" 3 | title: "List.ReplaceRange" 4 | ms.subservice: m-source 5 | --- 6 | # List.ReplaceRange 7 | 8 | ## Syntax 9 | 10 |
11 | List.ReplaceRange(list as list, index as number, count as number, replaceWith as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Replaces `count` values in the `list` with the list `replaceWith`, starting at specified position, `index`. 17 | 18 | ## Example 1 19 | 20 | Replace {7, 8, 9} in the list {1, 2, 7, 8, 9, 5} with {3, 4}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.ReplaceRange({1, 2, 7, 8, 9, 5}, 2, 3, {3, 4}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 3, 4, 5}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-reverse.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Reverse" 3 | title: "List.Reverse" 4 | ms.subservice: m-source 5 | --- 6 | # List.Reverse 7 | 8 | ## Syntax 9 | 10 |
11 | List.Reverse(list as list) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list with the values in the list `list` in reversed order. 17 | 18 | ## Example 1 19 | 20 | Create a list from {1..10} in reverse order. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Reverse({1..10}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-select.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Select" 3 | title: "List.Select" 4 | ms.subservice: m-source 5 | --- 6 | # List.Select 7 | 8 | ## Syntax 9 | 10 |
11 | List.Select(list as list, selection as function) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of values from the list `list`, that match the selection condition `selection`. 17 | 18 | ## Example 1 19 | 20 | Find the values in the list {1, -3, 4, 9, -2} that are greater than 0. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Select({1, -3, 4, 9, -2}, each _ > 0) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 4, 9}` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-split.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Split" 3 | title: "List.Split" 4 | ms.subservice: m-source 5 | --- 6 | # List.Split 7 | 8 | ## Syntax 9 | 10 |
11 | List.Split(list as list, pageSize as number) as list
12 | 
13 | 14 | ## About 15 | 16 | Splits `list` into a list of lists where the first element of the output list is a list containing the first `pageSize` elements from the source list, the next element of the output list is a list containing the next `pageSize` elements from the source list, and so on. 17 | -------------------------------------------------------------------------------- /query-languages/m/list-sum.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Sum" 3 | title: "List.Sum" 4 | ms.subservice: m-source 5 | --- 6 | # List.Sum 7 | 8 | ## Syntax 9 | 10 |
11 | List.Sum(list as list, optional precision as nullable number) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the sum of the non-null values in the list, `list`. Returns null if there are no non-null values in the list. 17 | 18 | ## Example 1 19 | 20 | Find the sum of the numbers in the list `{1, 2, 3}`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Sum({1, 2, 3}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `6` 31 | -------------------------------------------------------------------------------- /query-languages/m/list-transform.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: List.Transform" 3 | title: "List.Transform" 4 | ms.subservice: m-source 5 | --- 6 | # List.Transform 7 | 8 | ## Syntax 9 | 10 |
11 | List.Transform(list as list, transform as function) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a new list of values by applying the transform function `transform` to the list, `list`. 17 | 18 | ## Example 1 19 | 20 | Add 1 to each value in the list {1, 2}. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | List.Transform({1, 2}, each _ + 1) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{2, 3}` 31 | -------------------------------------------------------------------------------- /query-languages/m/logical-functions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Logical functions" 3 | title: "Logical functions" 4 | ms.date: 11/21/2024 5 | ms.custom: "nonautomated-date" 6 | --- 7 | # Logical functions 8 | 9 | These functions create and manipulate logical (that is, `true` or `false`) values. 10 | 11 | |Name|Description| 12 | |------------|---------------| 13 | |[Logical.From](logical-from.md)|Creates a logical from the given value.| 14 | |[Logical.FromText](logical-fromtext.md)|Creates a logical value from the text values "true" and "false".| 15 | |[Logical.ToText](logical-totext.md)|Returns the text "true" or "false" given a logical value.| 16 | -------------------------------------------------------------------------------- /query-languages/m/logical-totext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Logical.ToText" 3 | title: "Logical.ToText" 4 | ms.subservice: m-source 5 | --- 6 | # Logical.ToText 7 | 8 | ## Syntax 9 | 10 |
11 | Logical.ToText(logicalValue as nullable logical) as nullable text  
12 | 
13 | 14 | ## About 15 | 16 | Creates a text value from the logical value `logicalValue`, either `true` or `false`. If `logicalValue` is not a logical value, an exception is thrown. 17 | 18 | ## Example 1 19 | 20 | Create a text value from the logical `true`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Logical.ToText(true) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"true"` 31 | -------------------------------------------------------------------------------- /query-languages/m/media/evaluation-model-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/evaluation-model-1.png -------------------------------------------------------------------------------- /query-languages/m/media/evaluation-model-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/evaluation-model-2.png -------------------------------------------------------------------------------- /query-languages/m/media/fuzzy-match-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/fuzzy-match-table.png -------------------------------------------------------------------------------- /query-languages/m/media/ignore-case-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/ignore-case-table.png -------------------------------------------------------------------------------- /query-languages/m/media/list-distinct-lower-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-distinct-lower-case.png -------------------------------------------------------------------------------- /query-languages/m/media/list-distinct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-distinct.png -------------------------------------------------------------------------------- /query-languages/m/media/list-example-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-example-1.png -------------------------------------------------------------------------------- /query-languages/m/media/list-example-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-example-2.png -------------------------------------------------------------------------------- /query-languages/m/media/list-lower-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-lower-case.png -------------------------------------------------------------------------------- /query-languages/m/media/list-proper-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-proper-case.png -------------------------------------------------------------------------------- /query-languages/m/media/list-upper-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/list-upper-case.png -------------------------------------------------------------------------------- /query-languages/m/media/m-spec-formula-value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/m-spec-formula-value.png -------------------------------------------------------------------------------- /query-languages/m/media/m-spec-type-compatibility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/m-spec-type-compatibility.png -------------------------------------------------------------------------------- /query-languages/m/media/madvancededitor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/madvancededitor.png -------------------------------------------------------------------------------- /query-languages/m/media/mstep1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/mstep1.png -------------------------------------------------------------------------------- /query-languages/m/media/sorted-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/sorted-list.png -------------------------------------------------------------------------------- /query-languages/m/media/table-case-sensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-case-sensitive.png -------------------------------------------------------------------------------- /query-languages/m/media/table-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-example.png -------------------------------------------------------------------------------- /query-languages/m/media/table-loaded-power-bi-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-loaded-power-bi-desktop.png -------------------------------------------------------------------------------- /query-languages/m/media/table-lower-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-lower-case.png -------------------------------------------------------------------------------- /query-languages/m/media/table-proper-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-proper-case.png -------------------------------------------------------------------------------- /query-languages/m/media/table-upper-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/query-docs/273db60b60a9fe6a11bef5f4a02644254d7c7eef/query-languages/m/media/table-upper-case.png -------------------------------------------------------------------------------- /query-languages/m/module-versions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Module.Versions" 3 | title: "Module.Versions" 4 | ms.subservice: m-source 5 | --- 6 | # Module.Versions 7 | 8 | ## Syntax 9 | 10 |
11 | Module.Versions() as record
12 | 
13 | 14 | ## About 15 | 16 | Returns a record of module versions for the current module and its dependencies. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-abs.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Abs" 3 | title: "Number.Abs" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Abs 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Abs(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the absolute value of `number`. If `number` is null, **Number.Abs** returns null. 17 | 18 | * `number`: A `number` for which the absolute value is to be calculated. 19 | 20 | ## Example 1 21 | 22 | Absolute value of -3. 23 | 24 | **Usage** 25 | 26 | ```powerquery-m 27 | Number.Abs(-3) 28 | ``` 29 | 30 | **Output** 31 | 32 | `3` 33 | -------------------------------------------------------------------------------- /query-languages/m/number-acos.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Acos" 3 | title: "Number.Acos" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Acos 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Acos(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the arccosine of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-asin.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Asin" 3 | title: "Number.Asin" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Asin 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Asin(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the arcsine of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-atan.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Atan" 3 | title: "Number.Atan" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Atan 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Atan(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the arctangent of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-atan2.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Atan2" 3 | title: "Number.Atan2" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Atan2 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Atan2(y as nullable number, x as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the angle, in radians, whose tangent is the quotient `y`/`x` of the two numbers `y` and `x`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwiseand.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseAnd" 3 | title: "Number.BitwiseAnd" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseAnd 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseAnd(number1 as nullable number, number2 as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise "And" operation between `number1` and `number2`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwisenot.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseNot" 3 | title: "Number.BitwiseNot" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseNot 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseNot(number as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise "Not" operation on `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwiseor.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseOr" 3 | title: "Number.BitwiseOr" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseOr 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseOr(number1 as nullable number, number2 as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise "Or" between `number1` and `number2`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwiseshiftleft.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseShiftLeft" 3 | title: "Number.BitwiseShiftLeft" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseShiftLeft 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseShiftLeft(number1 as nullable number, number2 as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise shift to the left on `number1`, by the specified number of bits `number2`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwiseshiftright.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseShiftRight" 3 | title: "Number.BitwiseShiftRight" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseShiftRight 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseShiftRight(number1 as nullable number, number2 as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise shift to the right on `number1`, by the specified number of bits `number2`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-bitwisexor.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.BitwiseXor" 3 | title: "Number.BitwiseXor" 4 | ms.subservice: m-source 5 | --- 6 | # Number.BitwiseXor 7 | 8 | ## Syntax 9 | 10 |
11 | Number.BitwiseXor(number1 as nullable number, number2 as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of performing a bitwise "XOR" (Exclusive-OR) between `number1` and `number2`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-cos.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Cos" 3 | title: "Number.Cos" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Cos 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Cos(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the cosine of `number`. 17 | 18 | ## Example 1 19 | 20 | Find the cosine of the angle 0. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Cos(0) 26 | ``` 27 | 28 | **Output** 29 | 30 | `1` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-cosh.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Cosh" 3 | title: "Number.Cosh" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Cosh 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Cosh(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the hyperbolic cosine of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-e.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.E" 3 | title: "Number.E" 4 | ms.subservice: m-source 5 | --- 6 | # Number.E 7 | 8 | ## About 9 | 10 | A constant that represents 2.7182818284590451, the value for e up to 16 decimal digits. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-epsilon.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Epsilon" 3 | title: "Number.Epsilon" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Epsilon 7 | 8 | ## About 9 | 10 | A constant value that represents the smallest positive number a floating-point number can hold. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-exp.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Exp" 3 | title: "Number.Exp" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Exp 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Exp(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of raising e to the power of `number` (exponential function). 17 | 18 | * `number`: A `number` for which the exponential function is to be calculated. If `number` is null, **Number.Exp** returns null. 19 | 20 | ## Example 1 21 | 22 | Raise e to the power of 3. 23 | 24 | **Usage** 25 | 26 | ```powerquery-m 27 | Number.Exp(3) 28 | ``` 29 | 30 | **Output** 31 | 32 | `20.085536923187668` 33 | -------------------------------------------------------------------------------- /query-languages/m/number-factorial.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Factorial" 3 | title: "Number.Factorial" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Factorial 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Factorial(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the factorial of the number `number`. 17 | 18 | ## Example 1 19 | 20 | Find the factorial of 10. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Factorial(10) 26 | ``` 27 | 28 | **Output** 29 | 30 | `3628800` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-iseven.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.IsEven" 3 | title: "Number.IsEven" 4 | ms.subservice: m-source 5 | --- 6 | # Number.IsEven 7 | 8 | ## Syntax 9 | 10 |
11 | Number.IsEven(number as number) as logical
12 | 
13 | 14 | ## About 15 | 16 | Indicates if the value, `number`, is even by returning `true` if it is even, `false` otherwise. 17 | 18 | ## Example 1 19 | 20 | Check if 625 is an even number. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.IsEven(625) 26 | ``` 27 | 28 | **Output** 29 | 30 | `false` 31 | 32 | ## Example 2 33 | 34 | Check if 82 is an even number. 35 | 36 | **Usage** 37 | 38 | ```powerquery-m 39 | Number.IsEven(82) 40 | ``` 41 | 42 | **Output** 43 | 44 | `true` 45 | -------------------------------------------------------------------------------- /query-languages/m/number-isodd.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.IsOdd" 3 | title: "Number.IsOdd" 4 | ms.subservice: m-source 5 | --- 6 | # Number.IsOdd 7 | 8 | ## Syntax 9 | 10 |
11 | Number.IsOdd(number as number) as logical  
12 | 
13 | 14 | ## About 15 | 16 | Indicates if the value is odd. Returns `true` if `number` is an odd number, `false` otherwise. 17 | 18 | ## Example 1 19 | 20 | Check if 625 is an odd number. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.IsOdd(625) 26 | ``` 27 | 28 | **Output** 29 | 30 | `true` 31 | 32 | ## Example 2 33 | 34 | Check if 82 is an odd number. 35 | 36 | **Usage** 37 | 38 | ```powerquery-m 39 | Number.IsOdd(82) 40 | ``` 41 | 42 | **Output** 43 | 44 | `false` 45 | -------------------------------------------------------------------------------- /query-languages/m/number-ln.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Ln" 3 | title: "Number.Ln" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Ln 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Ln(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the natural logarithm of a number, `number`. If `number` is null `Number.Ln` returns null. 17 | 18 | ## Example 1 19 | 20 | Get the natural logarithm of 15. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Ln(15) 26 | ``` 27 | 28 | **Output** 29 | 30 | `2.70805020110221` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-log10.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Log10" 3 | title: "Number.Log10" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Log10 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Log10(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the base 10 logarithm of a number, `number`. If `number` is null **Number.Log10** returns null. 17 | 18 | ## Example 1 19 | 20 | Get the base 10 logarithm of 2. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Log10(2) 26 | ``` 27 | 28 | **Output** 29 | 30 | `0.3010299956639812` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-nan.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.NaN" 3 | title: "Number.NaN" 4 | ms.subservice: m-source 5 | --- 6 | # Number.NaN 7 | 8 | ## About 9 | 10 | A constant value that represents 0 divided by 0. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-negativeinfinity.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.NegativeInfinity" 3 | title: "Number.NegativeInfinity" 4 | ms.subservice: m-source 5 | --- 6 | # Number.NegativeInfinity 7 | 8 | ## About 9 | 10 | A constant value that represents -1 divided by 0. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-permutations.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Permutations" 3 | title: "Number.Permutations" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Permutations 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Permutations(setSize as nullable number, permutationSize as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of permutations that can be generated from a number of items, `setSize`, with a specified permutation size, `permutationSize`. 17 | 18 | ## Example 1 19 | 20 | Find the number of permutations from a total of 5 items in groups of 3. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Permutations(5, 3) 26 | ``` 27 | 28 | **Output** 29 | 30 | `60` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-pi.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.PI" 3 | title: "Number.PI" 4 | ms.subservice: m-source 5 | --- 6 | # Number.PI 7 | 8 | ## About 9 | 10 | A constant that represents 3.1415926535897932, the value for pi up to 16 decimal digits. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-positiveinfinity.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.PositiveInfinity" 3 | title: "Number.PositiveInfinity" 4 | ms.subservice: m-source 5 | --- 6 | # Number.PositiveInfinity 7 | 8 | ## About 9 | 10 | A constant value that represents 1 divided by 0. 11 | -------------------------------------------------------------------------------- /query-languages/m/number-power.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Power" 3 | title: "Number.Power" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Power 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Power(number as nullable number, power as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of raising `number` to the power of `power`. If `number` or `power` are null, **Number.Power** returns null. 17 | 18 | * `number`: The base. 19 | * `power`: The exponent. 20 | 21 | ## Example 1 22 | 23 | Find the value of 5 raised to the power of 3 (5 cubed). 24 | 25 | **Usage** 26 | 27 | ```powerquery-m 28 | Number.Power(5, 3) 29 | ``` 30 | 31 | **Output** 32 | 33 | `125` 34 | -------------------------------------------------------------------------------- /query-languages/m/number-random.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Random" 3 | title: "Number.Random" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Random 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Random() as number
12 | 
13 | 14 | ## About 15 | 16 | Returns a random number between 0 and 1. 17 | 18 | ## Example 1 19 | 20 | Get a random number. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Random() 26 | ``` 27 | 28 | **Output** 29 | 30 | `0.919303` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-randombetween.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.RandomBetween" 3 | title: "Number.RandomBetween" 4 | ms.subservice: m-source 5 | --- 6 | # Number.RandomBetween 7 | 8 | ## Syntax 9 | 10 |
11 | Number.RandomBetween(bottom as number, top as number) as number
12 | 
13 | 14 | ## About 15 | 16 | Returns a random number between `bottom` and `top`. 17 | 18 | ## Example 1 19 | 20 | Get a random number between 1 and 5. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.RandomBetween(1, 5) 26 | ``` 27 | 28 | **Output** 29 | 30 | `2.546797` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-sin.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Sin" 3 | title: "Number.Sin" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Sin 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Sin(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the sine of `number`. 17 | 18 | ## Example 1 19 | 20 | Find the sine of the angle 0. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Sin(0) 26 | ``` 27 | 28 | **Output** 29 | 30 | `0` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-sinh.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Sinh" 3 | title: "Number.Sinh" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Sinh 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Sinh(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the hyperbolic sine of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/number-tan.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Tan" 3 | title: "Number.Tan" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Tan 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Tan(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the tangent of `number`. 17 | 18 | ## Example 1 19 | 20 | Find the tangent of the angle 1. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Number.Tan(1) 26 | ``` 27 | 28 | **Output** 29 | 30 | `1.5574077246549023` 31 | -------------------------------------------------------------------------------- /query-languages/m/number-tanh.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Number.Tanh" 3 | title: "Number.Tanh" 4 | ms.subservice: m-source 5 | --- 6 | # Number.Tanh 7 | 8 | ## Syntax 9 | 10 |
11 | Number.Tanh(number as nullable number) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the hyperbolic tangent of `number`. 17 | -------------------------------------------------------------------------------- /query-languages/m/odataomitvalues-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: ODataOmitValues.Type" 3 | title: "ODataOmitValues.Type" 4 | ms.subservice: m-source 5 | --- 6 | # ODataOmitValues.Type 7 | 8 | ## Definition 9 | 10 | Specifies the kinds of values an OData service can omit. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**ODataOmitValues.Nulls**|"nulls"|Allows the OData service to omit null values.| 17 | 18 | ## Applies to 19 | 20 | * [Accessing data functions](accessing-data-functions.md) 21 | -------------------------------------------------------------------------------- /query-languages/m/order-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Order.Type" 3 | title: "Order.Type" 4 | ms.subservice: m-source 5 | --- 6 | # Order.Type 7 | 8 | ## Definition 9 | 10 | Specifies the direction of sorting. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**Order.Ascending**|0|Sorts the values in ascending order.| 17 | |**Order.Descending**|1|Sorts the values in descending order.| 18 | 19 | ## Applies to 20 | 21 | * [Table functions](table-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/precision-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Precision.Type" 3 | title: "Precision.Type" 4 | ms.subservice: m-source 5 | --- 6 | # Precision.Type 7 | 8 | ## Definition 9 | 10 | Specifies the precision of comparison. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**Precision.Double**|0|An optional parameter for the built-in arithmetic operators to specify double precision.| 17 | |**Precision.Decimal**|1|An optional parameter for the built-in arithmetic operators to specify decimal precision.| 18 | 19 | ## Applies to 20 | 21 | * [Value functions](value-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/progress-datasourceprogress.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Progress.DataSourceProgress" 3 | title: "Progress.DataSourceProgress" 4 | ms.subservice: m-source 5 | --- 6 | # Progress.DataSourceProgress 7 | 8 | ## Syntax 9 | 10 |
11 | Progress.DataSourceProgress() as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/quotestyle-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: QuoteStyle.Type" 3 | title: "QuoteStyle.Type" 4 | ms.subservice: m-source 5 | --- 6 | # QuoteStyle.Type 7 | 8 | ## Definition 9 | 10 | Specifies the quote style. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**QuoteStyle.None**|0|Quote characters have no significance.| 17 | |**QuoteStyle.Csv**|1|Quote characters indicate the start of a quoted string. Nested quotes are indicated by two quote characters.| 18 | 19 | ## Applies to 20 | 21 | * [Splitter functions](splitter-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/rdata-frombinary.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: RData.FromBinary" 3 | title: "RData.FromBinary" 4 | ms.subservice: m-source 5 | --- 6 | # RData.FromBinary 7 | 8 | ## Syntax 9 | 10 |
11 | RData.FromBinary(stream as binary) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns a record of data frames from the RData file. 17 | -------------------------------------------------------------------------------- /query-languages/m/record-combine.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.Combine" 3 | title: "Record.Combine" 4 | ms.subservice: m-source 5 | --- 6 | # Record.Combine 7 | 8 | ## Syntax 9 | 10 |
11 | Record.Combine(records as list) as record
12 | 
13 | 14 | ## About 15 | 16 | Combines the records in the given `records`. If the `records` contains non-record values, an error is returned. 17 | 18 | ## Example 1 19 | 20 | Create a combined record from the records. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.Combine({ 26 | [CustomerID = 1, Name = "Bob"], 27 | [Phone = "123-4567"] 28 | }) 29 | ``` 30 | 31 | **Output** 32 | 33 | `[CustomerID = 1, Name = "Bob", Phone = "123-4567"]` 34 | -------------------------------------------------------------------------------- /query-languages/m/record-field.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.Field" 3 | title: "Record.Field" 4 | ms.subservice: m-source 5 | --- 6 | # Record.Field 7 | 8 | ## Syntax 9 | 10 |
11 | Record.Field(record as record, field as text) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the value of the specified `field` in the `record`. If the field is not found, an exception is thrown. 17 | 18 | ## Example 1 19 | 20 | Find the value of field "CustomerID" in the record. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.Field([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "CustomerID") 26 | ``` 27 | 28 | **Output** 29 | 30 | `1` 31 | -------------------------------------------------------------------------------- /query-languages/m/record-fieldcount.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.FieldCount" 3 | title: "Record.FieldCount" 4 | ms.subservice: m-source 5 | --- 6 | # Record.FieldCount 7 | 8 | ## Syntax 9 | 10 |
11 | Record.FieldCount(record as record) as number 
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of fields in the record `record`. 17 | 18 | ## Example 1 19 | 20 | Find the number of fields in the record. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.FieldCount([CustomerID = 1, Name = "Bob"]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `2` 31 | -------------------------------------------------------------------------------- /query-languages/m/record-fieldnames.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.FieldNames" 3 | title: "Record.FieldNames" 4 | ms.subservice: m-source 5 | --- 6 | # Record.FieldNames 7 | 8 | ## Syntax 9 | 10 |
11 | Record.FieldNames(record as record) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns the names of the fields in the record `record` as text. 17 | 18 | ## Example 1 19 | 20 | Find the names of the fields in the record. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.FieldNames([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{"OrderID", "CustomerID", "Item", "Price"}` 31 | -------------------------------------------------------------------------------- /query-languages/m/record-fieldvalues.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.FieldValues" 3 | title: "Record.FieldValues" 4 | ms.subservice: m-source 5 | --- 6 | # Record.FieldValues 7 | 8 | ## Syntax 9 | 10 |
11 | Record.FieldValues(record as record) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of the field values in record `record`. 17 | 18 | ## Example 1 19 | 20 | Find the field values in the record. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.FieldValues([CustomerID = 1, Name = "Bob", Phone = "123-4567"]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, "Bob", "123-4567"}` 31 | -------------------------------------------------------------------------------- /query-languages/m/record-tolist.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Record.ToList" 3 | title: "Record.ToList" 4 | ms.subservice: m-source 5 | --- 6 | # Record.ToList 7 | 8 | ## Syntax 9 | 10 |
11 | Record.ToList(record as record) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of values containing the field values from the input `record`. 17 | 18 | ## Example 1 19 | 20 | Extract the field values from a record. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Record.ToList([A = 1, B = 2, C = 3]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `{1, 2, 3}` 31 | -------------------------------------------------------------------------------- /query-languages/m/relativeposition-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: RelativePosition.Type" 3 | title: "RelativePosition.Type" 4 | ms.subservice: m-source 5 | --- 6 | # RelativePosition.Type 7 | 8 | ## Definition 9 | 10 | Indicates whether indexing should be done from the start or end of the input. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | | ------- | --- | ----------- | 16 | |**RelativePosition.FromStart**|0| Indicates indexing should be done from the start of the input.| 17 | |**RelativePosition.FromEnd**|1| Indicates indexing should be done from the end of the input.| 18 | 19 | ## Applies to 20 | 21 | * [Text functions](text-functions.md) 22 | -------------------------------------------------------------------------------- /query-languages/m/replacer-replacevalue.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Replacer.ReplaceValue" 3 | title: "Replacer.ReplaceValue" 4 | ms.subservice: m-source 5 | --- 6 | # Replacer.ReplaceValue 7 | 8 | ## Syntax 9 | 10 |
11 | Replacer.ReplaceValue(value as any, old as any, new as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Replaces the `old` value in the original `value` with the `new` value. This replacer function can be used in `List.ReplaceValue` and `Table.ReplaceValue`. 17 | 18 | ## Example 1 19 | 20 | Replace the value 11 with the value 10. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Replacer.ReplaceValue(11, 11, 10) 26 | ``` 27 | 28 | **Output** 29 | 30 | `10` 31 | -------------------------------------------------------------------------------- /query-languages/m/rowexpression-row.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: RowExpression.Row" 3 | title: "RowExpression.Row" 4 | ms.subservice: m-source 5 | --- 6 | # RowExpression.Row 7 | 8 | ## About 9 | 10 | An abstract syntax tree (AST) node representing the row in a row expression. 11 | 12 | This value is identical to [`ItemExpression.Item`](itemexpression-item.md). 13 | -------------------------------------------------------------------------------- /query-languages/m/sharpdatetime.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: #datetime" 3 | title: "#datetime" 4 | ms.subservice: m-source 5 | --- 6 | # #datetime 7 | 8 | ## Syntax 9 | 10 |
11 | #datetime(year as number, month as number, day as number, hour as number, minute as number, second as number) as datetime
12 | 
13 | 14 | ## About 15 | 16 | Creates a datetime value from numbers representing the year, month, day, hour, minute, and (fractional) second. Raises an error if these conditions are not true: 17 | 18 | * 1 ≤ year ≤ 9999 19 | * 1 ≤ month ≤ 12 20 | * 1 ≤ day ≤ 31 21 | * 0 ≤ hour ≤ 23 22 | * 0 ≤ minute ≤ 59 23 | * 0 ≤ second < 60 24 | -------------------------------------------------------------------------------- /query-languages/m/sharpduration.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: #duration" 3 | title: "#duration" 4 | ms.subservice: m-source 5 | --- 6 | # #duration 7 | 8 | ## Syntax 9 | 10 |
11 | #duration(days as number, hours as number, minutes as number, seconds as number) as duration
12 | 
13 | 14 | ## About 15 | 16 | Creates a duration value from numbers representing days, hours, minutes, and (fractional) seconds. 17 | -------------------------------------------------------------------------------- /query-languages/m/sharptime.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: #time" 3 | title: "#time" 4 | ms.subservice: m-source 5 | --- 6 | # #time 7 | 8 | ## Syntax 9 | 10 |
11 | #time(hour as number, minute as number, second as number) as time
12 | 
13 | 14 | ## About 15 | 16 | Creates a time value from numbers representing the hour, minute, and (fractional) second. Raises an error if these conditions are not true: 17 | 18 | * 0 ≤ hour ≤ 24 19 | * 0 ≤ minute ≤ 59 20 | * 0 ≤ second < 60 21 | * if hour is 24, then minute and second must be 0 22 | -------------------------------------------------------------------------------- /query-languages/m/soda-feed.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Soda.Feed" 3 | title: "Soda.Feed" 4 | ms.subservice: m-source 5 | --- 6 | # Soda.Feed 7 | 8 | ## Syntax 9 | 10 |
11 | Soda.Feed(url as text) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table from the contents at the specified URL `url` formatted according to the SODA 2.0 API. The URL must point to a valid SODA-compliant source that ends in a .csv extension. 17 | -------------------------------------------------------------------------------- /query-languages/m/splitter-splitbynothing.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Splitter.SplitByNothing" 3 | title: "Splitter.SplitByNothing" 4 | ms.subservice: m-source 5 | --- 6 | # Splitter.SplitByNothing 7 | 8 | ## Syntax 9 | 10 |
11 | Splitter.SplitByNothing() as function
12 | 
13 | 14 | ## About 15 | 16 | Returns a function that does no splitting, returning its argument as a single element list. 17 | -------------------------------------------------------------------------------- /query-languages/m/splitter-splittextbywhitespace.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Splitter.SplitTextByWhitespace" 3 | title: "Splitter.SplitTextByWhitespace" 4 | ms.subservice: m-source 5 | --- 6 | # Splitter.SplitTextByWhitespace 7 | 8 | ## Syntax 9 | 10 |
11 | Splitter.SplitTextByWhitespace(optional quoteStyle as nullable number) as function
12 | 
13 | 14 | ## About 15 | 16 | Returns a function that splits text into a list of text at whitespace. 17 | 18 | ## Example 1 19 | 20 | Split the input by whitespace characters, treating quotes like any other character. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Splitter.SplitTextByWhitespace(QuoteStyle.None)("a b#(tab)c") 26 | ``` 27 | 28 | **Output** 29 | 30 | `{"a", "b", "c"}` 31 | -------------------------------------------------------------------------------- /query-languages/m/sqlexpression-schemafrom.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: SqlExpression.SchemaFrom" 3 | title: "SqlExpression.SchemaFrom" 4 | ms.subservice: m-source 5 | --- 6 | # SqlExpression.SchemaFrom 7 | 8 | ## Syntax 9 | 10 |
11 | SqlExpression.SchemaFrom(schema as any) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/sqlexpression-toexpression.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: SqlExpression.ToExpression" 3 | title: "SqlExpression.ToExpression" 4 | ms.subservice: m-source 5 | --- 6 | # SqlExpression.ToExpression 7 | 8 | ## Syntax 9 | 10 |
11 | SqlExpression.ToExpression(sql as text, environment as record) as text
12 | 
13 | 14 | ## About 15 | 16 | Converts the provided `sql` query to M code, with the available identifiers defined by `environment`. This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-conformtopagereader.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.ConformToPageReader" 3 | title: "Table.ConformToPageReader" 4 | ms.subservice: m-source 5 | --- 6 | # Table.ConformToPageReader 7 | 8 | ## Syntax 9 | 10 |
11 | Table.ConformToPageReader(table as table, shapingFunction as function) as table
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-filterwithdatatable.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.FilterWithDataTable" 3 | title: "Table.FilterWithDataTable" 4 | ms.subservice: m-source 5 | --- 6 | # Table.FilterWithDataTable 7 | 8 | ## Syntax 9 | 10 |
11 | Table.FilterWithDataTable(table as table, dataTableIdentifier as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-firstvalue.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.FirstValue" 3 | title: "Table.FirstValue" 4 | ms.subservice: m-source 5 | --- 6 | # Table.FirstValue 7 | 8 | ## Syntax 9 | 10 |
11 | Table.FirstValue(table as table, optional default as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the first column of the first row of the table `table` or a specified default value. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-partitionvalues.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.PartitionValues" 3 | title: "Table.PartitionValues" 4 | ms.subservice: m-source 5 | --- 6 | # Table.PartitionValues 7 | 8 | ## Syntax 9 | 10 |
11 | Table.PartitionValues(table as table) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns information about how a table is partitioned. A table is returned where each column is a partition column in the original table, and each row corresponds to a partition in the original table. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-profile.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.Profile" 3 | title: "Table.Profile" 4 | ms.subservice: m-source 5 | --- 6 | # Table.Profile 7 | 8 | ## Syntax 9 | 10 |
11 | Table.Profile(table as table, optional additionalAggregates as nullable list) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a profile for the columns in `table`. 17 | 18 | The following information is returned for each column (when applicable): 19 | 20 | * minimum 21 | * maximum 22 | * average 23 | * standard deviation 24 | * count 25 | * null count 26 | * distinct count 27 | -------------------------------------------------------------------------------- /query-languages/m/table-replacerelationshipidentity.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.ReplaceRelationshipIdentity" 3 | title: "Table.ReplaceRelationshipIdentity" 4 | ms.subservice: m-source 5 | --- 6 | # Table.ReplaceRelationshipIdentity 7 | 8 | ## Syntax 9 | 10 |
11 | Table.ReplaceRelationshipIdentity(value as any, identity as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/table-rowcount.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.RowCount" 3 | title: "Table.RowCount" 4 | ms.subservice: m-source 5 | --- 6 | # Table.RowCount 7 | 8 | ## Syntax 9 | 10 |
11 | Table.RowCount(table as table) as number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of rows in the `table`. 17 | 18 | ## Example 1 19 | 20 | Find the number of rows in the table. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Table.RowCount( 26 | Table.FromRecords({ 27 | [CustomerID = 1, Name = "Bob", Phone = "123-4567"], 28 | [CustomerID = 2, Name = "Jim", Phone = "987-6543"], 29 | [CustomerID = 3, Name = "Paul", Phone = "543-7890"] 30 | }) 31 | ) 32 | ``` 33 | 34 | **Output** 35 | 36 | `3` 37 | -------------------------------------------------------------------------------- /query-languages/m/table-singlerow.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.SingleRow" 3 | title: "Table.SingleRow" 4 | ms.subservice: m-source 5 | --- 6 | # Table.SingleRow 7 | 8 | ## Syntax 9 | 10 |
11 | Table.SingleRow(table as table) as record  
12 | 
13 | 14 | ## About 15 | 16 | Returns the single row in the one row `table`. If the `table` does not contain exactly one row, an error is raised. 17 | 18 | ## Example 1 19 | 20 | Return the single row in the table. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Table.SingleRow(Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]})) 26 | ``` 27 | 28 | **Output** 29 | 30 | `[CustomerID = 1, Name = "Bob", Phone = "123-4567"]` 31 | -------------------------------------------------------------------------------- /query-languages/m/table-viewerror.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.ViewError" 3 | title: "Table.ViewError" 4 | ms.subservice: m-source 5 | --- 6 | # Table.ViewError 7 | 8 | ## Syntax 9 | 10 |
11 | Table.ViewError(errorRecord as record) as record
12 | 
13 | 14 | ## About 15 | 16 | Creates a modified error record from `errorRecord` which won't trigger a fallback when thrown by a handler defined on a view (via [Table.View](/powerquery-m/table-view)). 17 | -------------------------------------------------------------------------------- /query-languages/m/table-witherrorcontext.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Table.WithErrorContext" 3 | title: "Table.WithErrorContext" 4 | ms.subservice: m-source 5 | --- 6 | # Table.WithErrorContext 7 | 8 | ## Syntax 9 | 10 |
11 | Table.WithErrorContext(value as any, context as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/tables-getrelationships.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Tables.GetRelationships" 3 | title: "Tables.GetRelationships" 4 | ms.subservice: m-source 5 | --- 6 | # Tables.GetRelationships 7 | 8 | ## Syntax 9 | 10 |
11 | Tables.GetRelationships(tables as table, optional dataColumn as nullable text) as table
12 | 
13 | 14 | ## About 15 | 16 | Gets the relationships among a set of tables. The set `tables` is assumed to have a structure similar to that of a navigation table. The column defined by `dataColumn` contains the actual data tables. 17 | -------------------------------------------------------------------------------- /query-languages/m/text-at.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.At" 3 | title: "Text.At" 4 | ms.subservice: m-source 5 | --- 6 | # Text.At 7 | 8 | ## Syntax 9 | 10 |
11 | Text.At(text as nullable text, index as number) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns the character in the text value, `text` at position `index`. The first character in the text is at position 0. 17 | 18 | ## Example 1 19 | 20 | Find the character at position 4 in string "Hello, World". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.At("Hello, World", 4) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"o"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-clean.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Clean" 3 | title: "Text.Clean" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Clean 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Clean(text as nullable text) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns a text value with all control characters of `text` removed. 17 | 18 | ## Example 1 19 | 20 | Remove line feeds and other control characters from a text value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Clean("ABC#(lf)D") 26 | ``` 27 | 28 | **Output** 29 | 30 | `"ABCD"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-end.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.End" 3 | title: "Text.End" 4 | ms.subservice: m-source 5 | --- 6 | # Text.End 7 | 8 | ## Syntax 9 | 10 |
11 | Text.End(text as nullable text, count as number) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns a `text` value that is the last `count` characters of the `text` value `text`. 17 | 18 | ## Example 1 19 | 20 | Get the last 5 characters of the text "Hello, World". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.End("Hello, World", 5) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"World"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-frombinary.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.FromBinary" 3 | title: "Text.FromBinary" 4 | ms.subservice: m-source 5 | --- 6 | # Text.FromBinary 7 | 8 | ## Syntax 9 | 10 |
11 | Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Decodes data, `binary`, from a binary value in to a text value, using `encoding` type. 17 | -------------------------------------------------------------------------------- /query-languages/m/text-infernumbertype.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.InferNumberType" 3 | title: "Text.InferNumberType" 4 | ms.subservice: m-source 5 | --- 6 | # Text.InferNumberType 7 | 8 | ## Syntax 9 | 10 |
11 | Text.InferNumberType(text as text, optional culture as nullable text) as type
12 | 
13 | 14 | ## About 15 | 16 | Infers the granular number type (`Int64.Type`, `Double.Type`, and so on) of `text`. An error is raised if `text` is not a number. An optional `culture` may also be provided (for example, "en-US"). 17 | 18 | ## Related content 19 | 20 | * [How culture affects text formatting](how-culture-affects-text-formatting.md) 21 | -------------------------------------------------------------------------------- /query-languages/m/text-insert.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Insert" 3 | title: "Text.Insert" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Insert 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Insert(text as nullable text, offset as number, newText as text) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of inserting text value `newText` into the text value `text` at position `offset`. Positions start at number 0. 17 | 18 | ## Example 1 19 | 20 | Insert "C" between "B" and "D" in "ABD". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Insert("ABD", 2, "C") 26 | ``` 27 | 28 | **Output** 29 | 30 | `"ABCD"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-length.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Length" 3 | title: "Text.Length" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Length 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Length(text as nullable text) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the number of characters in the text `text`. 17 | 18 | ## Example 1 19 | 20 | Find how many characters are in the text "Hello World". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Length("Hello World") 26 | ``` 27 | 28 | **Output** 29 | 30 | `11` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-newguid.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.NewGuid" 3 | title: "Text.NewGuid" 4 | ms.subservice: m-source 5 | --- 6 | # Text.NewGuid 7 | 8 | ## Syntax 9 | 10 |
11 | Text.NewGuid() as text
12 | 
13 | 14 | ## About 15 | 16 | Returns a new, random globally unique identifier (GUID). 17 | -------------------------------------------------------------------------------- /query-languages/m/text-remove.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Remove" 3 | title: "Text.Remove" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Remove 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Remove(text as nullable text, removeChars as any) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns a copy of the text value `text` with all the characters from `removeChars` removed. 17 | 18 | ## Example 1 19 | 20 | Remove characters , and ; from the text value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Remove("a,b;c", {",",";"}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"abc"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-reverse.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Reverse" 3 | title: "Text.Reverse" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Reverse 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Reverse(text as nullable text) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Reverses the provided `text`. 17 | 18 | ## Example 1 19 | 20 | Reverse the text "123". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Reverse("123") 26 | ``` 27 | 28 | **Output** 29 | 30 | `"321"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-select.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.Select" 3 | title: "Text.Select" 4 | ms.subservice: m-source 5 | --- 6 | # Text.Select 7 | 8 | ## Syntax 9 | 10 |
11 | Text.Select(text as nullable text, selectChars as any) as nullable text
12 | 
13 | 14 | ## About 15 | 16 | Returns a copy of the text value `text` with all the characters not in `selectChars` removed. 17 | 18 | ## Example 1 19 | 20 | Select all characters in the range of 'a' to 'z' from the text value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.Select("a,b;c", {"a".."z"}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"abc"` 31 | -------------------------------------------------------------------------------- /query-languages/m/text-tobinary.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.ToBinary" 3 | title: "Text.ToBinary" 4 | ms.subservice: m-source 5 | --- 6 | # Text.ToBinary 7 | 8 | ## Syntax 9 | 10 |
11 | Text.ToBinary(text as nullable text, optional encoding as nullable number, optional includeByteOrderMark as nullable logical) as nullable binary
12 | 
13 | 14 | ## About 15 | 16 | Encodes the given text value, `text`, into a binary value using the specified `encoding`. 17 | -------------------------------------------------------------------------------- /query-languages/m/text-tolist.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Text.ToList" 3 | title: "Text.ToList" 4 | ms.subservice: m-source 5 | --- 6 | # Text.ToList 7 | 8 | ## Syntax 9 | 10 |
11 | Text.ToList(text as text) as list
12 | 
13 | 14 | ## About 15 | 16 | Returns a list of character values from the given text value `text`. 17 | 18 | ## Example 1 19 | 20 | Create a list of character values from the text "Hello World". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Text.ToList("Hello World") 26 | ``` 27 | 28 | **Output** 29 | 30 | ```powerquery-m{ 31 | "H", 32 | "e", 33 | "l", 34 | "l", 35 | "o", 36 | " ", 37 | "W", 38 | "o", 39 | "r", 40 | "l", 41 | "d" 42 | } 43 | ``` 44 | -------------------------------------------------------------------------------- /query-languages/m/time-hour.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Time.Hour" 3 | title: "Time.Hour" 4 | ms.subservice: m-source 5 | --- 6 | # Time.Hour 7 | 8 | ## Syntax 9 | 10 |
11 | Time.Hour(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the hour component of the provided `time`, `datetime`, or `datetimezone` value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | Find the hour in #datetime(2011, 12, 31, 9, 15, 36). 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Time.Hour(#datetime(2011, 12, 31, 9, 15, 36)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `9` 31 | -------------------------------------------------------------------------------- /query-languages/m/time-minute.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Time.Minute" 3 | title: "Time.Minute" 4 | ms.subservice: m-source 5 | --- 6 | # Time.Minute 7 | 8 | ## Syntax 9 | 10 |
 
11 | Time.Minute(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the minute component of the provided `time`, `datetime`, or `datetimezone` value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | Find the minute in #datetime(2011, 12, 31, 9, 15, 36). 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Time.Minute(#datetime(2011, 12, 31, 9, 15, 36)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `15` 31 | -------------------------------------------------------------------------------- /query-languages/m/time-second.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Time.Second" 3 | title: "Time.Second" 4 | ms.subservice: m-source 5 | --- 6 | # Time.Second 7 | 8 | ## Syntax 9 | 10 |
11 | Time.Second(dateTime as any) as nullable number
12 | 
13 | 14 | ## About 15 | 16 | Returns the second component of the provided `time`, `datetime`, or `datetimezone` value, `dateTime`. 17 | 18 | ## Example 1 19 | 20 | Find the second value from a datetime value. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Time.Second(#datetime(2011, 12, 31, 9, 15, 36.5)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `36.5` 31 | -------------------------------------------------------------------------------- /query-languages/m/time-startofhour.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Time.StartOfHour" 3 | title: "Time.StartOfHour" 4 | ms.subservice: m-source 5 | --- 6 | # Time.StartOfHour 7 | 8 | ## Syntax 9 | 10 |
11 | Time.StartOfHour(dateTime as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the start of the hour represented by `dateTime`. `dateTime` must be a `time`, `datetime` or `datetimezone` value. 17 | 18 | ## Example 1 19 | 20 | Find the start of the hour for October 10th, 2011, 8:10:32AM. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Time.StartOfHour(#datetime(2011, 10, 10, 8, 10, 32)) 26 | ``` 27 | 28 | **Output** 29 | 30 | `#datetime(2011, 10, 10, 8, 0, 0)` 31 | -------------------------------------------------------------------------------- /query-languages/m/timezone-current.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: TimeZone.Current" 3 | title: "TimeZone.Current" 4 | ms.subservice: m-source 5 | --- 6 | # TimeZone.Current 7 | 8 | ## About 9 | 10 | Returns the name of the current time zone for the application. 11 | -------------------------------------------------------------------------------- /query-languages/m/tracelevel-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: TraceLevel.Type" 3 | title: "TraceLevel.Type" 4 | ms.subservice: m-source 5 | --- 6 | # TraceLevel.Type 7 | 8 | ## Definition 9 | 10 | Specifies the trace level. 11 | 12 | ## Allowed values 13 | 14 | |Name|Value|Description| 15 | |------------|--|-------------| 16 | |**TraceLevel.Critical**|1|Specifies the Critical trace level.| 17 | |**TraceLevel.Error**|2|Specifies the Error trace level.| 18 | |**TraceLevel.Warning**|4|Specifies the Warning trace level.| 19 | |**TraceLevel.Information**|8|Specifies the Information trace level.| 20 | |**TraceLevel.Verbose**|16|Specifies the Verbose trace level.| 21 | 22 | ## Applies to 23 | 24 | * [Error handling](error-handling.md) 25 | -------------------------------------------------------------------------------- /query-languages/m/type-addtablekey.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.AddTableKey" 3 | title: "Type.AddTableKey" 4 | ms.subservice: m-source 5 | --- 6 | # Type.AddTableKey 7 | 8 | ## Syntax 9 | 10 |
11 | Type.AddTableKey(table as type, columns as list, isPrimary as logical) as type
12 | 
13 | 14 | ## About 15 | 16 | Adds a key to the given table type. 17 | -------------------------------------------------------------------------------- /query-languages/m/type-closedrecord.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.ClosedRecord" 3 | title: "Type.ClosedRecord" 4 | ms.subservice: m-source 5 | --- 6 | # Type.ClosedRecord 7 | 8 | ## Syntax 9 | 10 |
11 | Type.ClosedRecord(type as type) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns a closed version of the given `record` `type` (or the same type, if it is already closed). 17 | 18 | ## Example 1 19 | 20 | Create a closed version of `type [ A = number,…]`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.ClosedRecord(type [A = number, ...]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `type [A = number]` 31 | 32 | ## Related content 33 | 34 | * [Types and type conversion](type-conversion.md) 35 | -------------------------------------------------------------------------------- /query-languages/m/type-facets.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.Facets" 3 | title: "Type.Facets" 4 | ms.subservice: m-source 5 | --- 6 | # Type.Facets 7 | 8 | ## Syntax 9 | 10 |
11 | Type.Facets(type as type) as record
12 | 
13 | 14 | ## About 15 | 16 | Returns a record containing the facets of `type`. 17 | -------------------------------------------------------------------------------- /query-languages/m/type-functionreturn.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.FunctionReturn" 3 | title: "Type.FunctionReturn" 4 | ms.subservice: m-source 5 | --- 6 | # Type.FunctionReturn 7 | 8 | ## Syntax 9 | 10 |
11 | Type.FunctionReturn(type as type) as type  
12 | 
13 | 14 | ## About 15 | 16 | Returns a type returned by a function `type`. 17 | 18 | ## Example 1 19 | 20 | Find the return type of `() as any)`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.FunctionReturn(type function () as any) 26 | ``` 27 | 28 | **Output** 29 | 30 | `type any` 31 | -------------------------------------------------------------------------------- /query-languages/m/type-isopenrecord.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.IsOpenRecord" 3 | title: "Type.IsOpenRecord" 4 | ms.subservice: m-source 5 | --- 6 | # Type.IsOpenRecord 7 | 8 | ## Syntax 9 | 10 |
11 | Type.IsOpenRecord(type as type) as logical
12 | 
13 | 14 | ## About 15 | 16 | Returns a `logical` indicating whether a record `type` is open. 17 | 18 | ## Example 1 19 | 20 | Determine if the record `type [ A = number, ...]` is open. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.IsOpenRecord(type [A = number, ...]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `true` 31 | -------------------------------------------------------------------------------- /query-languages/m/type-listitem.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.ListItem" 3 | title: "Type.ListItem" 4 | ms.subservice: m-source 5 | --- 6 | # Type.ListItem 7 | 8 | ## Syntax 9 | 10 |
11 | Type.ListItem(type as type) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns an item type from a list `type`. 17 | 18 | ## Example 1 19 | 20 | Find item type from the list `{number}`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.ListItem(type {number}) 26 | ``` 27 | 28 | **Output** 29 | 30 | `type number` 31 | 32 | ## Related content 33 | 34 | * [Types and type conversion](type-conversion.md) 35 | -------------------------------------------------------------------------------- /query-languages/m/type-nonnullable.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.NonNullable" 3 | title: "Type.NonNullable" 4 | ms.subservice: m-source 5 | --- 6 | # Type.NonNullable 7 | 8 | ## Syntax 9 | 10 |
11 | Type.NonNullable(type as type) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns the non `nullable` type from the `type`. 17 | 18 | ## Example 1 19 | 20 | Return the non nullable type of `type nullable number`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.NonNullable(type nullable number) 26 | ``` 27 | 28 | **Output** 29 | 30 | `type number` 31 | 32 | ## Related content 33 | 34 | * [Types and type conversion](type-conversion.md) 35 | -------------------------------------------------------------------------------- /query-languages/m/type-openrecord.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.OpenRecord" 3 | title: "Type.OpenRecord" 4 | ms.subservice: m-source 5 | --- 6 | # Type.OpenRecord 7 | 8 | ## Syntax 9 | 10 |
11 | Type.OpenRecord(type as type) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns an opened version of the given `record` `type` (or the same type, if it is already opened). 17 | 18 | ## Example 1 19 | 20 | Create an opened version of `type [ A = number]`. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Type.OpenRecord(type [A = number]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `type [A = number, ...]` 31 | 32 | ## Related content 33 | 34 | * [Types and type conversion](type-conversion.md) 35 | -------------------------------------------------------------------------------- /query-languages/m/type-replacefacets.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.ReplaceFacets" 3 | title: "Type.ReplaceFacets" 4 | ms.subservice: m-source 5 | --- 6 | # Type.ReplaceFacets 7 | 8 | ## Syntax 9 | 10 |
11 | Type.ReplaceFacets(type as type, facets as record) as type
12 | 
13 | 14 | ## About 15 | 16 | Replaces the facets of `type` with the facets contained in the record `facets`. 17 | -------------------------------------------------------------------------------- /query-languages/m/type-tablecolumn.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.TableColumn" 3 | title: "Type.TableColumn" 4 | ms.subservice: m-source 5 | --- 6 | # Type.TableColumn 7 | 8 | ## Syntax 9 | 10 |
11 | Type.TableColumn(tableType as type, column as text) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns the type of the column `column` in the table type `tableType`. 17 | -------------------------------------------------------------------------------- /query-languages/m/type-tableschema.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.TableSchema" 3 | title: "Type.TableSchema" 4 | ms.subservice: m-source 5 | --- 6 | # Type.TableSchema 7 | 8 | ## Syntax 9 | 10 |
11 | Type.TableSchema(tableType as type) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a table describing the columns of `tableType`. 17 | 18 | Refer to the documentation for [Table.Schema](/powerquery-m/table-schema) for a description of the resulting table. 19 | 20 | ## Related content 21 | 22 | * [Types and type conversion](type-conversion.md) 23 | -------------------------------------------------------------------------------- /query-languages/m/type-union.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Type.Union" 3 | title: "Type.Union" 4 | ms.subservice: m-source 5 | --- 6 | # Type.Union 7 | 8 | ## Syntax 9 | 10 |
11 | Type.Union(types as list) as type
12 | 
13 | 14 | ## About 15 | 16 | Returns the union of the types in `types`. 17 | -------------------------------------------------------------------------------- /query-languages/m/uri-buildquerystring.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Uri.BuildQueryString" 3 | title: "Uri.BuildQueryString" 4 | ms.subservice: m-source 5 | --- 6 | # Uri.BuildQueryString 7 | 8 | ## Syntax 9 | 10 |
11 | Uri.BuildQueryString(query as record) as text
12 | 
13 | 14 | ## About 15 | 16 | Assemble the record `query` into a URI query string, escaping characters as necessary. 17 | 18 | ## Example 1 19 | 20 | Encode a query string which contains some special characters. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Uri.BuildQueryString([a = "1", b = "+$"]) 26 | ``` 27 | 28 | **Output** 29 | 30 | `"a=1&b=%2B%24"` 31 | -------------------------------------------------------------------------------- /query-languages/m/uri-combine.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Uri.Combine" 3 | title: "Uri.Combine" 4 | ms.subservice: m-source 5 | --- 6 | # Uri.Combine 7 | 8 | ## Syntax 9 | 10 |
11 | Uri.Combine(baseUri as text, relativeUri as text) as text
12 | 
13 | 14 | ## About 15 | 16 | Returns an absolute URI that is the combination of the input `baseUri` and `relativeUri`. 17 | -------------------------------------------------------------------------------- /query-languages/m/uri-escapedatastring.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Uri.EscapeDataString" 3 | title: "Uri.EscapeDataString" 4 | ms.subservice: m-source 5 | --- 6 | # Uri.EscapeDataString 7 | 8 | ## Syntax 9 | 10 |
11 | Uri.EscapeDataString(data as text) as text
12 | 
13 | 14 | ## About 15 | 16 | Encodes special characters in the input `data` according to the rules of RFC 3986. 17 | 18 | ## Example 1 19 | 20 | Encode the special characters in "+money$". 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Uri.EscapeDataString("+money$") 26 | ``` 27 | 28 | **Output** 29 | 30 | `"%2Bmoney%24"` 31 | -------------------------------------------------------------------------------- /query-languages/m/uri-functions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Uri functions" 3 | title: "Uri functions" 4 | ms.date: 5/16/2022 5 | ms.custom: "nonautomated-date" 6 | --- 7 | # Uri functions 8 | 9 | These functions create and manipulate URI query strings. 10 | 11 | |Name|Description| 12 | |------------|---------------| 13 | |[Uri.BuildQueryString](uri-buildquerystring.md) | Assemble a record into a URI query string.| 14 | |[Uri.Combine](uri-combine.md)|Returns a Uri based on the combination of the base and relative parts.| 15 | |[Uri.EscapeDataString](uri-escapedatastring.md) | Encodes special characters in accordance with RFC 3986.| 16 | |[Uri.Parts](uri-parts.md)|Returns a record value with the fields set to the parts of a Uri text value.| 17 | -------------------------------------------------------------------------------- /query-languages/m/value-add.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Add" 3 | title: "Value.Add" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Add 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Add(value1 as any, value2 as any, optional precision as nullable number) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the sum of `value1` and `value2`. An optional `precision` parameter may be specified, by default `Precision.Double` is used. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-alternates.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Alternates" 3 | title: "Value.Alternates" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Alternates 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Alternates(alternates as list) as any
12 | 
13 | 14 | ## About 15 | 16 | Expresses alternate query plans within a query plan expression obtained through `Value.Expression(Value.Optimize(...))`. Not intended for other uses. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-compare.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Compare" 3 | title: "Value.Compare" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Compare 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Compare(value1 as any, value2 as any, optional precision as nullable number) as number
12 | 
13 | 14 | ## About 15 | 16 | Returns -1, 0, or 1 based on whether the first value is less than, equal to, or greater than the second. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-divide.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Divide" 3 | title: "Value.Divide" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Divide 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Divide(value1 as any, value2 as any, optional precision as nullable number) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the result of dividing `value1` by `value2`. An optional `precision` parameter may be specified, by default `Precision.Double` is used. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-equals.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Equals" 3 | title: "Value.Equals" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Equals 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Equals(value1 as any, value2 as any, optional precision as nullable number) as logical
12 | 
13 | 14 | ## About 15 | 16 | Returns true if value `value1` is equal to value `value2`, false otherwise. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-expression.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Expression" 3 | title: "Value.Expression" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Expression 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Expression(value as any) as nullable record
12 | 
13 | 14 | ## About 15 | 16 | Returns an abstract syntax tree (AST) that represents the value's expression. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-firewall.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Firewall" 3 | title: "Value.Firewall" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Firewall 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Firewall(key as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-is.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Is" 3 | title: "Value.Is" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Is 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Is(value as any, type as type) as logical
12 | 
13 | 14 | ## About 15 | 16 | Determines whether a value is compatible with the specified type. This is equivalent to the "is" operator in M, with the exception that it can accept identifier type references such as Number.Type. 17 | 18 | ## Example 1 19 | 20 | Compare two ways of determining if a number is compatible with type number. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Value.Is(123, Number.Type) = (123 is number) 26 | ``` 27 | 28 | **Output** 29 | 30 | `true` 31 | -------------------------------------------------------------------------------- /query-languages/m/value-lineage.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Lineage" 3 | title: "Value.Lineage" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Lineage 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Lineage(value as any) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-metadata.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Metadata" 3 | title: "Value.Metadata" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Metadata 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Metadata(value as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns a record containing the input's metadata. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-multiply.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Multiply" 3 | title: "Value.Multiply" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Multiply 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Multiply(value1 as any, value2 as any, optional precision as nullable number) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the product of multiplying `value1` by `value2`. An optional `precision` parameter may be specified, by default [Precision.Double](precision-type.md) is used. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-nullableequals.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.NullableEquals" 3 | title: "Value.NullableEquals" 4 | ms.subservice: m-source 5 | --- 6 | # Value.NullableEquals 7 | 8 | ## Syntax 9 | 10 |
11 | Value.NullableEquals(value1 as any, value2 as any, optional precision as nullable number) as nullable logical
12 | 
13 | 14 | ## About 15 | 16 | Returns null if either argument `value1`, `value2` is null, otherwise equivalent to [Value.Equals](value-equals.md). 17 | -------------------------------------------------------------------------------- /query-languages/m/value-optimize.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Optimize" 3 | title: "Value.Optimize" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Optimize 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Optimize(value as any) as any
12 | 
13 | 14 | ## About 15 | 16 | When used within Value.Expression, if `value` represents a query that can be optimized, this function indicates that the optimized expression should be returned. Otherwise, `value` will be passed through with no effect. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-replacemetadata.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.ReplaceMetadata" 3 | title: "Value.ReplaceMetadata" 4 | ms.subservice: m-source 5 | --- 6 | # Value.ReplaceMetadata 7 | 8 | ## Syntax 9 | 10 |
11 | Value.ReplaceMetadata(value as any, metaValue as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Replaces the input's metadata information. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-subtract.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Subtract" 3 | title: "Value.Subtract" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Subtract 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Subtract(value1 as any, value2 as any, optional precision as nullable number) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the difference of `value1` and `value2`. An optional `precision` parameter may be specified, by default `Precision.Double` is used. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-traits.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Traits" 3 | title: "Value.Traits" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Traits 7 | 8 | ## Syntax 9 | 10 |
11 | Value.Traits(value as any) as table
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-versionidentity.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.VersionIdentity" 3 | title: "Value.VersionIdentity" 4 | ms.subservice: m-source 5 | --- 6 | # Value.VersionIdentity 7 | 8 | ## Syntax 9 | 10 |
 
11 | Value.VersionIdentity(value as any) as any
12 | 
13 | 14 | ## About 15 | 16 | Returns the version identity of the `value`, or `null` if it doesn't have a version. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-versions.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.Versions" 3 | title: "Value.Versions" 4 | ms.subservice: m-source 5 | --- 6 | # Value.Versions 7 | 8 | ## Syntax 9 | 10 |
 
11 | Value.Versions(value as any) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns a navigation table containing the available versions of `value`. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-viewerror.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.ViewError" 3 | title: "Value.ViewError" 4 | ms.subservice: m-source 5 | --- 6 | # Value.ViewError 7 | 8 | ## Syntax 9 | 10 |
11 | Value.ViewError(errorRecord as record) as record
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/value-viewfunction.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Value.ViewFunction" 3 | title: "Value.ViewFunction" 4 | ms.subservice: m-source 5 | --- 6 | # Value.ViewFunction 7 | 8 | ## Syntax 9 | 10 |
11 | Value.ViewFunction(function as function) as function
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/variable-value.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Variable.Value" 3 | title: "Variable.Value" 4 | ms.subservice: m-source 5 | --- 6 | # Variable.Value 7 | 8 | ## Syntax 9 | 10 |
11 | Variable.Value(identifier as text) as any
12 | 
13 | 14 | ## About 15 | 16 | This function is intended for internal use only. 17 | -------------------------------------------------------------------------------- /query-languages/m/web-page.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Web.Page" 3 | title: "Web.Page" 4 | ms.subservice: m-source 5 | --- 6 | # Web.Page 7 | 8 | ## Syntax 9 | 10 |
11 | Web.Page(html as any) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the HTML document broken into its constituent structures, as well as a representation of the full document and its text after removing tags. 17 | -------------------------------------------------------------------------------- /query-languages/m/xml-document.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Xml.Document" 3 | title: "Xml.Document" 4 | ms.subservice: m-source 5 | --- 6 | # Xml.Document 7 | 8 | ## Syntax 9 | 10 |
11 | Xml.Document(contents as any, optional encoding as nullable number) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the XML document as a hierarchical table. 17 | -------------------------------------------------------------------------------- /query-languages/m/xml-tables.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: "Learn more about: Xml.Tables" 3 | title: "Xml.Tables" 4 | ms.subservice: m-source 5 | --- 6 | # Xml.Tables 7 | 8 | ## Syntax 9 | 10 |
11 | Xml.Tables(contents as any, optional options as nullable record, optional encoding as nullable number) as table
12 | 
13 | 14 | ## About 15 | 16 | Returns the contents of the XML document as a nested collection of flattened tables. 17 | 18 | ## Example 1 19 | 20 | Retrieve the contents of a local XML file. 21 | 22 | **Usage** 23 | 24 | ```powerquery-m 25 | Xml.Tables(File.Contents("C:\invoices.xml")) 26 | ``` 27 | 28 | **Output** 29 | 30 | `table` 31 | --------------------------------------------------------------------------------