isblank
6 Topicsneed help with a switch function with a null value
Always having problems with blank value. i am trying to do a switch function, if the date value is blank "--" if not, formula will do a datediff between 2 dates. testing = switch( TRUE, ISBLANK(Policy[Final Concurrence Date]),"--", NETWORKDAYS(Policy[Date_Assigned],Policy[Final Concurrence Date],1) ) formula is calculating the datediff correctly, but having a hard time if the date is blank/null. tried IF/else as well, both gave me this error expressions that yield variant data-type cannot be used to define calculated columns Those who are smarter than I please help. tySolved2.6KViews0likes4CommentsScorecard needs to show 0 if no value
Hello! Please advise how to add ISBLANK or adjust the measure so the scorecard will not show BLANK (shows 0) if there is no value. Ready Units = CALCULATE( DISTINCTCOUNT('Table Name'[UNIT_NO]), 'Table Name'[Unit Status] IN { "Ready" } ) Thank you!Solved526Views0likes1CommentHelp with formula including SWITCH, TRUE, ISBLANK
Hey guys, I have this column called COOKIE_ID and a column VISIT_ID. I want to figure out if a visitor (identified by COOKIE_ID) comes for the first time or is a returning visitor or an annonymous visitor. For this I figured I write the following formula: Cookie Status = VAR SelectedDateRange = DATESBETWEEN ( 'OD - All Page Visits Portal'[PAGE_LOAD_DATE], MIN ( 'OD - All Page Visits Portal'[PAGE_LOAD_DATE] ), MAX ( 'OD - All Page Visits Portal'[PAGE_LOAD_DATE] ) ) VAR CookieVisits = CALCULATETABLE ( VALUES ( 'OD - All Page Visits Portal'[COOKIE_ID] ), ALLEXCEPT ( 'OD - All Page Visits Portal', 'OD - All Page Visits Portal'[COOKIE_ID] ), SelectedDateRange ) VAR VisitCount = CALCULATE ( DISTINCTCOUNT ( 'OD - All Page Visits Portal'[VISIT_ID] ), ALLEXCEPT ( 'OD - All Page Visits Portal', 'OD - All Page Visits Portal'[COOKIE_ID] ), SelectedDateRange ) RETURN SWITCH ( TRUE (), ISBLANK ( 'OD - All Page Visits Portal'[COOKIE_ID] ), "Anoniem", VisitCount > 2, "Terugkerend", VisitCount = 1, "Nieuw", "Onbekend" ) For some odd reason though I can't select the column COOKIE_ID in ISBLANK. See picture below What am I doing wrong here?Solved1.7KViews0likes6CommentsIF(ISBLANK) in SWITCH too heavy for a query to export
I have a simple SWITCH formula to switch between different measures in the matrix. One of the measures need to show in % format so I'm using FORMAT([Measure], "0.0%") but this measure is adding blank rows in the matrix (as explained here FORMAT function (DAX) - DAX | Microsoft Learn "If value is BLANK() the function returns an empty string") I found the solution in this thread: Solved: Re: Visual showing blank rows using SELECTEDVALUE ... - Microsoft Power BI Community where it is suggested to use: IF ( ISBLANK ( [Measure] ), BLANK (), FORMAT ( [Measure], "0.0%" ) ) and after adding this the blank rows disappear which is great however it looks like the measure is now too heavy and users can't export the summarized data from the matrix. Even a very small export is failing due to query being too heavy. As soon as I get rid of IF(ISBLANK),BLANK() the export works again. Any suggestions for alternative that would allow me to get rid of blank rows and not affect the export possibility?Solved1.9KViews0likes2CommentsHelp with ISBLANK function
Hope someone can help with this ISBLANK function: # Tables with no person assigned = CALCULATE(DISTINCTCOUNT(responsibility[table_id]),(responsibility[role_id]="Engineer" && ISBLANK(responsibility[user_id]))) It is currently not returning a number, so I must have done something wrong here. Appreciate any help!1.4KViews0likes4CommentsLookup value in a column and fill new column in same table
Hello, I am new with DAX and I am having some issues with the following: 1. Table has a column 'first_visit' (date type) with some null values; 2. some rows with same 'id' have column 'first_visit' with data and other rows have null values Output desired: I have tried LOOKUPVALUE, ISBLANK functions but I am having some syntax problems. Thank you in advance for your help.Solved1KViews0likes3Comments