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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Marcus_S
Frequent Visitor

If, then, else with autofill?

Hello Everybody!

I´m new in Power BI, here ist my Problem

I´ve the following table

Marcus_S_0-1616486683249.png

If the Status is 1, then it´s the starting time. 2 means the ending time.

Now i try to create i visualisation tabel, that shows me in one row "Order No", "starting time", "ending time"

First i tried to create columns. but the it looks like:

Marcus_S_1-1616486886311.png

Start = IF('VB Communication Log'[VB Prod_ Order Status]=1, 'VB Communication Log'[Processing at],0 )
End = IF('VB Communication Log'[VB Prod_ Order Status]=2, 'VB Communication Log'[Processing at],0 )
But in theory it must be, if status =1 then starting time, else it´s ending time.
I´ve no clue to get this.
 
Thanks for help
2 REPLIES 2
amitchandak
Super User
Super User

@Marcus_S , Not very clear. Try like

 

Start = IF('VB Communication Log'[VB Prod_ Order Status]=1, 'VB Communication Log'[Processing at],blank() )
End = IF('VB Communication Log'[VB Prod_ Order Status]<> 1, 'VB Communication Log'[Processing at],blank() )

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

@amitchandak , thank for that.

Now it´s looks so

Marcus_S_0-1616496929663.png

How i can get it now in one row. You see, there are rows per order. one with start and one with end. 

Thanks a lot

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.