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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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