Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
consider 2 tables orders and sales having conection with each other and below are the table details
consider table 1 : orders
below are fields of orders table
which contains
id
name
order date
consider table 2 : sales
below are fields of sales table:
idsales
quantity
ship date
now find the distinct count of "id" in the orders table that is not present in the sales table using dax
note:
is the below formula correct
@MattAllington @xifeng_L @lbendlin
Solved! Go to Solution.
I would try something like the below:
distinct count not in table = COUNTROWS(EXCEPT(VALUES(orders[id]), VALUES(sales[id])))
That's fine, but I think it might be better to change VALUES to ALL, so as to avoid the effects of some extraneous filtering.
distinct count not in table = COUNTROWS(EXCEPT(ALL(orders[id]), ALL(sales[id])))
The type of relationship between the table matters. What is the cardinality and direction of filter propagation? A screen should of the model view is normally easiest
I would try something like the below:
distinct count not in table = COUNTROWS(EXCEPT(VALUES(orders[id]), VALUES(sales[id])))
That's fine, but I think it might be better to change VALUES to ALL, so as to avoid the effects of some extraneous filtering.
distinct count not in table = COUNTROWS(EXCEPT(ALL(orders[id]), ALL(sales[id])))
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |