HomeCreateProjectsModelsTips
FR EN
Sign in
Tips

DAX

Each note starts from a symptom you have seen in a meeting, explains the cause, and gives the fix with code to copy. Written and checked by the dashport team.

AllPower BIDAXPower QueryPower AutomateExcel to Power BIData storytelling
DAXYour CEO sees “Infinity” on the margin card: replace / with DIVIDEA region with no sales shows Infinity or NaN; totals and sorting go wrong in front of management.DAXThe same CALCULATE three times in one measure: slower to run, impossible to reviewA growth measure nobody dares to touch, and a page that takes seconds to refresh.DAXYour year-to-date equals the month and last year is blank: the date table is missingTOTALYTD returns the monthly value; SAMEPERIODLASTYEAR returns nothing.DAXEvery customer is ranked 1: RANKX is only looking at one rowThe ranking column shows 1 everywhere and a strange number on the total.DAXYou cannot say which 20% of products make 80% of sales: a Pareto in two measuresLong product tables, no priority, stock and effort spread evenly.DAX“Revenue France” shows France on every row: CALCULATE replaced your filterThe same number repeated on every country of the matrix.DAX“Where will we land in December?” A forecast your CFO can check by handForecasts from a black box that nobody trusts in a budget meeting.
dashport · Dashboard + ReportFind an expertSupport the project ♡SolutionsMarketplaceTipsPrivacyTermsLegal noticeContactPower BI available today · Tableau and Qlik planned
HomeCreateProjectsModelsAccount