Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

LastNonBlankValue ?

This is how the table looks like in Power BI.My goal is to fill up the blank comments (where IsCurrentVersion=1) with last non-null value for the same ID.

samm_0-1639496457213.png

 

For example, the blank comment row for ID 6355  where IsCurrentVersion=1 should be populated with “Hi, Richard is asking for accedd on the Bed Capacity Tracking” site".

For ID 6360, latest row should remain blank because there’s no previous non-null value .

For 6362, latest row should be “Sent an MN to tier 2 for the ticket”

For 6379, latest row should be “Added roles for all”

To achieve this, I tried to use the LASTNONBLANKVALUE function. My formula is here :

Column = IF (‘’Sheet1’IsCurrentVersion]=1 && ‘Sheet1’ [Comments]="", LASTNONBLANKVALUE(' Sheet1'[Last_Modified],'sheet1'[_Comments]))

But this formula won’t work because my Date column is not standard. It doesn’t have all the dates in a year.

 

So I tried to add a custom column

samm_1-1639496457240.png

 

Then fill up

samm_2-1639496457269.png

 

Obviously that didn’t work either because it doesn’t understand the Grouping of ID’s. For example For ID 6360, latest row should remain blank because there’s no previous non-null value for that particular ID .

Can anyone advice on groupoing/ filling down or any other custom column method?

 

 

 

 

 

 

https://1drv.ms/x/s!Apg-ha77_EillQlnj2TCAhNPDhvg?e=zQ1w7Z 

1 ACCEPTED SOLUTION
3 REPLIES 3
Anonymous
Not applicable

no, the date is just being pulled from sharepoint. so the date column is not properly set up. can i acheive the solution with group by and fill?i have been trying but can't find a solution

AlexisOlson
Super User
Super User

Do you have a proper date table set up?

 

https://dax.guide/lastnonblankvalue/

In order to use any time intelligence calculation, you need a well-formed date table.
Anonymous
Not applicable

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors