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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
LukeFPowerBI
New Member

Help with column creation and additional data sort

Hello

First post so apologies but I cant find anything remotely simlar to this issue i am having, I have just hit a stone wall and cant think and the more i look at the issue the more i can think of an answer.

I created this column from an existing column in my data:

LukeFPowerBI_0-1673260179030.png

 

 

I did a search and replace and 'if online was true' set to online or else i replaced the value to EPOS.  Nice and easy however, I learned that EPOS has back office transactions lumbered in to.

 

So what I need help with is how I create a column that has EPOS, Online, Backoffice.

 

The only way to differentiate this is the blanks 

 

LukeFPowerBI_1-1673260313658.png

 

 

So would need to be not online and if till name is blank then update as backoffice, but i am stumped i have only been using powerbi since october so I am probably out of my

2 REPLIES 2
Mahesh0016
Super User
Super User

@LukeFPowerBI ,
#Power Query # Add Column
If [TillName]=Blank() Then "backoffice" Else [TillName]

# Power Query

Select Column Right Click >> Replce Value With Blank >> "backoffice".



#DAX
IF(tillname= Blank(),"backoffice",TillName)

*If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

Hello @Mahesh0016 thanks for the response, its sadly not as simple as that.

Basically this is what i have via sql for this so far:
Online = ReceivedOnline = 1
SM = ReceivedOnline = 0 and TillID IS NULL
EPOS = ReceivedOnline = 0 and TillID IS NOT NULL

 

if that makes more sense, if i update all blanks to back office, then the figures will not work it needs to follow that exact mapping, i have troed created a column within the table that references these as the 'filter' if you like but i am really not getting anywhere fast.

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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