March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi,
I am trying to create a column "Purchase Type" in a Purchase table by checking if the values in one of the columns(Suppliers) of this table appear in a column(Supplier Code) in another table(IT Suppliers). If it does, then enter " IT Purchase" in the row, else enter "Non-IT Purchase".
I have tried various methods 1) create conditional column 2) create custom column 3) create new column but all without getting the correct values.
My code is :
Solved! Go to Solution.
@shermayne123 , Try a new column like
Purch Type =
IF(
not(isblank(Countx(filter('IT Suppliers', 'All FYs'[(CON) Supplier (for Services)] = 'IT Suppliers'[Supplier Code]),'IT Suppliers'[Supplier Code])))
"IT Purchase",
"Non-IT Purchase"
)
Thank you amitchandak for the swift response and the code! After adding a missing comma, it works correctly now.
Purch Type =
IF(
not(isblank(Countx(filter('IT Suppliers', 'All FYs'[(CON) Supplier (for Services)] = 'IT Suppliers'[Supplier Code]),'IT Suppliers'[Supplier Code]))),
"IT Purchase",
"Non-IT Purchase"
)
Thank you so much!!
@shermayne123 , Try a new column like
Purch Type =
IF(
not(isblank(Countx(filter('IT Suppliers', 'All FYs'[(CON) Supplier (for Services)] = 'IT Suppliers'[Supplier Code]),'IT Suppliers'[Supplier Code])))
"IT Purchase",
"Non-IT Purchase"
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |