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'm still learning table functions, so please help me...
I have the following columns in my data table:
Invoice No.
Customer Name
Product Line - A, B, C, D, E
Revenue
I need a DAX table formula to get a column with the list of Customers who did not buy a particular product line (B)
I tried this
ZeroCustomers = SUMMARIZECOLUMNS('US Sales'[CustomerName],'US Sales'[Productline],FILTER('US Sales','US Sales'[Productline]<>"B"))
But it gives me the customers who bought B also...
Please help me at the earliest.
Solved! Go to Solution.
@melvincv wrote:
Hi,
I'm still learning table functions, so please help me...
I have the following columns in my data table:
Invoice No.
Customer Name
Product Line - A, B, C, D, E
Revenue
I need a DAX table formula to get a column with the list of Customers who did not buy a particular product line (B)
I tried this
ZeroCustomers = SUMMARIZECOLUMNS('US Sales'[CustomerName],'US Sales'[Productline],FILTER('US Sales','US Sales'[Productline]<>"B"))
But it gives me the customers who bought B also...
Please help me at the earliest.
You can try to create a calculated table as
Product = VALUES(Table1[Product Line])
and a measure as
Not Purchase the selected Product = IF ( ISFILTERED ( 'Product'[Product Line] ) && HASONEVALUE ( 'Product'[Product Line] ) && COUNTAX ( FILTER ( Table1, Table1[Product Line] = LASTNONBLANK ( 'Product'[Product Line], "" ) ), Table1[Customer Name] ) >= 1, FALSE (), TRUE () )
See more details in the attached pbix.
@melvincv wrote:
Hi,
I'm still learning table functions, so please help me...
I have the following columns in my data table:
Invoice No.
Customer Name
Product Line - A, B, C, D, E
Revenue
I need a DAX table formula to get a column with the list of Customers who did not buy a particular product line (B)
I tried this
ZeroCustomers = SUMMARIZECOLUMNS('US Sales'[CustomerName],'US Sales'[Productline],FILTER('US Sales','US Sales'[Productline]<>"B"))
But it gives me the customers who bought B also...
Please help me at the earliest.
You can try to create a calculated table as
Product = VALUES(Table1[Product Line])
and a measure as
Not Purchase the selected Product = IF ( ISFILTERED ( 'Product'[Product Line] ) && HASONEVALUE ( 'Product'[Product Line] ) && COUNTAX ( FILTER ( Table1, Table1[Product Line] = LASTNONBLANK ( 'Product'[Product Line], "" ) ), Table1[Customer Name] ) >= 1, FALSE (), TRUE () )
See more details in the attached pbix.
Hi,
You can use function IF [e.g IF(and(Product Line="B",revenue<>0 "or you can use >0"),Customer Name,"")
I do not know whether you have two categories in 1 column.
How do I exclude the values of the Customer Name column?
I have
Table1 - CustomerName, Product Line
Table2 - CustomerName, Product Line
I need Table3 with Table1[CustomerName] - Table2[CustomerName]
What infor should be represented in these 2 tables (1 and 2)?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |