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.
I'm sure I'm missing somethinging here so any help would be appreciate. Also, happy to do the leg work myself if you can point me in the right direction.
Table 1 is linked to Table 2 (1 to many) on CustomerID
I want to creat a measure that counts CustomerIDs from Table 1. I want to filter this on Table1 [colour] = "red" and by Table 2 [product]="grocery" OR [product]="butchers".
Measure to count items in table 1 but filtered across Table1 and Table2
My attemp is below but it ignores the filters I'm tring to establish on Table 2.
Hi @TASylbaryn it could be you need RELATED
Test2 = CALCULATE(COUNTA(Table1[CUSTOMERID]), FILTER('Table1',Customer[colour]="red"),RELATED('Table2'[product]) IN {"grocery","butchers"})
I hope this is ok for you.
Check the link for example
Proud to be a Super User!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |