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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.