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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Help with returning value from the subsequent column in the table, even though the value is BLANK()

Greetings everyone. Long story short - I've been stuck with the problem for days now, not knowing what to do, so I've decided to give these forums a go.

First of all, the data (names were altered a little for the sake of ease and confidentiality):
- There are 6 phases, each one has it's own date value.
- Data itself comes from database which I cannot edit; Nor can I edit a SQL-query; so NULLs instead of BLANKs is not an option.

default.png

Second, what I need:
- I need the measure to return value of the subsequent column, i.e. measure should return the value of "Start 2" after "Start 1", and that should go on till "Start 6".
- If there is a date value in subsequent column - measure returns it.
- If there is NO date value (i.e. BLANK()) in subsequent column - measure returns "Insufficient Data". (now this one is KEY moment)

Third, what do I get with my measure:
- It does work well when the "Phase" columns are filled and complete:

PreacherBaby_1-1657610884153.png

- It doesn't work well when there are spaces between dates:

PreacherBaby_2-1657610994657.png

PreacherBaby_3-1657611178921.png

          - and THIS IS the problem. Measure I created "jumps over" from "Start 1" straight to "Start 5", ignoring previous column values because them being BLANKs. I tried to preserve it with functions like ISBLANK() and etc., but it jumps over still.

 

NOTE: The problem not just with "Start 1" and "Start 5" - it can occure with any "Start #" in this range.

 



3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

vyangliumsft_0-1658301271885.png

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
UNION(
    SELECTCOLUMNS('Table',"Start",[Start1]),
     SELECTCOLUMNS('Table',"Start",[Start2]),
      SELECTCOLUMNS('Table',"Start",[Start3]))

2. Result:

vyangliumsft_1-1658301271887.png

 

If you need pbix, please click here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Anonymous , Check Unpivot in power query can help

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I don't have rights to edit anything in PQ, unfortunately:( 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.