Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have two table (Table01 and Table 02)
How I can get Table 03 that have the ID that exist in table 02 and not exist in table 01
Thanks.
Solved! Go to Solution.
@Anonymous ,
if you are trying to find products with NO sales in a given period, then this video should help you as this is exactly what it's for:
if you want to practice, download the tutorial here: https://businessintelligist.com/2020/07/25/dax-tutorial-how-to-count-things-that-did-not-happen/
@Anonymous ,
@Anonymous ,
Uuse the EXCEPT() function for your requirement.
@Anonymous ,
a new table
Table = EXCEPT(DISTINCT('Table1'[ProductID]),DISTINCT('Table2'[ProductID]))
as a measure
Measure = countx(EXCEPT(DISTINCT('Table1'[ProductID]),DISTINCT('Table2'[ProductID])), [ProductID])
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 32 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 82 | |
| 68 | |
| 43 | |
| 26 | |
| 25 |