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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
dtango9
Helper II
Helper II

Help with New Measure Data Column

Hello!

I'm looking to have the column Vendor Name, if (blank), return the text "PREPAIDS" if column Expense Description contains the text "PREPAIDS".  I would also like Vendor Name, if (blank), if Expense Description does not contain the text "PREPAIDS"/all else return "Accrual/Reclass" if it does not contain the text "Prepaids".

 

What is currently shown:

Vendor NameExpense Description
(blank)PREPAIDS
Bob's DinerFood
(blank)Accrual
Super Sally'sSports Apparel
(blank)Expense Reclass

 

What I would like shown:

Vendor NameExpense Description
PREPAIDSPREPAIDS
Bob's DinerFood
Accrual/ReclassAccrual
Super Sally'sSports Apparel
Accrual/ReclassExpense Reclass
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dtango9 , a new columns

 

Switch( True(),

isblank([Vendor Name]) &&  containsstring([Expense Description], "prepaid") , "PREPAIDS" ,

isblank([Vendor Name]), "Accrual/Reclass" ,

[Vendor Name]

)

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

View solution in original post

4 REPLIES 4
dtango9
Helper II
Helper II

It worked!  Thank you 😀

SamInogic
Solution Sage
Solution Sage

Hi @dtango9 

You can create a column with below DAX expression,

Vendor Name Updated = IF('Table'[Vendor Name] = BLANK() && LOWER('Table'[Expense Description]) = "prepaids" , "PREAIDS",IF('Table'[Vendor Name] = BLANK() && not (LOWER('Table'[Expense Description]) = "prepaids") , "Accrual/Reclass",'Table'[Expense Description]))

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Hi,  This is what I have and it's only returning "Accrual/Reclass"...

 

New Master Name = IF('finance ExpensesWithAccountDescriptions'[Originating Master Name]=BLANK() && LOWER('finance ExpensesWithAccountDescriptions'[Description])="PREPAIDS","PREPAIDS",IF('finance ExpensesWithAccountDescriptions'[Originating Master Name] = BLANK() && NOT (LOWER('finance ExpensesWithAccountDescriptions'[Description]) = "PREPAID"), "Accrual/Reclass", 'finance ExpensesWithAccountDescriptions'[Originating Master Name]))

 

amitchandak
Super User
Super User

@dtango9 , a new columns

 

Switch( True(),

isblank([Vendor Name]) &&  containsstring([Expense Description], "prepaid") , "PREPAIDS" ,

isblank([Vendor Name]), "Accrual/Reclass" ,

[Vendor Name]

)

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.