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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.