Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I need to perform ISBLANK on a date column where there are blank values, so i thought to change the null values to 01/01/1000.
But, i cant still use IF function to compare the MAX[DATE]-1 = 01/01/1000, as MAX[DATE]-1 returns the actual max date -1 .
For instance if max[DATE] = 08/08/2022, then MAX[DATE]-1 will be 07/08/2022 whereas i want it to return 01/01/1000.
Also is there a way to check for nulls in date column?
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous
go to power query, add an index column, then use the column code below
Column =
var _last=MAXX(FILTER('Table','Table'[Index]<EARLIER('Table'[Index]) && 'Table'[Column1]<>BLANK()),[Index])
var _date=MAXX(FILTER('Table','Table'[Index]=_last),[Column1])
return
IF(ISBLANK('Table'[Column1]),_date-'Table'[Index]+_last,'Table'[Column1])
result
Regards,
OliT
In simple words
I wish this measure to return the value 1;
as the date 07/08/2022 is blank in my date column;
Hi @Anonymous
go to power query, add an index column, then use the column code below
Column =
var _last=MAXX(FILTER('Table','Table'[Index]<EARLIER('Table'[Index]) && 'Table'[Column1]<>BLANK()),[Index])
var _date=MAXX(FILTER('Table','Table'[Index]=_last),[Column1])
return
IF(ISBLANK('Table'[Column1]),_date-'Table'[Index]+_last,'Table'[Column1])
result
Regards,
OliT
Thanks for the response, but it doesnt solve my problem.
I'll try to explain again. I wish find NAV-CHAESH for MAX date and divide it by the NAV-CHAESH of the previous date and subtract 1 so that i get the percentage difference. This works fine if there's no gap in the dates, but in my case there are some 'null' values. What i wish to achieve is that if the [DATE]-1 is 'null', then look for the next nonblank value.
My measure for this:
Data set:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |