Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |