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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
kkalyanrr
Helper V
Helper V

Problem while using first nonblank DAX expression

Hello Team,

 

I'm looking for solutions for the below issue,

 

based on estimated date and contractnumber I'm pulling the data in to the other table(I tried look up but not working so tried first non blank) , so here is output looks.
But what I am expecting is the item name should continue to populate till the next change in Itemname..

Please help.

 

1.PNGTable3Table3

1 ACCEPTED SOLUTION

Hi @kkalyanrr 

You may create a calendar table and then new the table as below:

Table 2 =
SELECTCOLUMNS (
    FILTER (
        GENERATE ( Table1, 'Calendar' ),
        Table1[Date] <= 'Calendar'[_Date]
            && Table1[Next_date] > 'Calendar'[_Date]
    ),
    "ID", Table1[ID],
    "Date", 'Calendar'[_Date],
    "Stage", Table1[Stage]
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @kkalyanrr 

It seems you may try to use GENERATE function.Could you explain more about your expected output?If you need further help,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-cherch-msft  -- Here is the what I'm looking for ,

 

Till the next change in the "Stage" column the previous value has to be continued...

 

Capture.PNG

Hi @kkalyanrr 

You may create a calendar table and then new the table as below:

Table 2 =
SELECTCOLUMNS (
    FILTER (
        GENERATE ( Table1, 'Calendar' ),
        Table1[Date] <= 'Calendar'[_Date]
            && Table1[Next_date] > 'Calendar'[_Date]
    ),
    "ID", Table1[ID],
    "Date", 'Calendar'[_Date],
    "Stage", Table1[Stage]
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.