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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.