The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi there,
I'm currently looking at quotes received from suppliers for various products.
What I'm failing is to create a new column or measure to identify the products each of the suppliers have quoted for.
Supplier | Product | Calculated Intersection |
A | 2 | |
A | 4 | 4 |
A | 5 | |
B | 4 | 4 |
B | 2 | |
C | 4 | 4 |
Any ideas?
Can the soltuion be probably enhanced by adding a filter on Supplier in order to determine column entries to be evaluated in the 3rd column / or a measure?
Best Regards
Tobias
@tweidner , create new column
new column =
var _dis = distinctcount(Table[Supplier])
var _disp = calculate(distinctcount(Table[Supplier]), filter(Table, [product] = earlier([product])))
return
if(_dis = _disp =, [product], blank())
@amitchandak , sorry, but dax just returns blanks... Did I overlook something?
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |