Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
New to SQL, DAX and power BI here.
I have a table where I need to find unique values to know what is present in some location and what is not.
exemple below where in Power Bi I need to find all unique SKU values if there are NOT present in the location CCC and I can't find the solution.
Thanks
Solved! Go to Solution.
@Adrpgs Try:
Measure =
VAR __SKUs = DISTINCT(SELECTCOLUMNS('Table',"__SKU",[SKU]))
VAR __CCCSKUs = DISTINCT(SELECTCOLUMNS(FILTER('Table',[Location] = "CCC"),"__SKU",[SKU]))
VAR __Table = EXCEPT(__SKUs, __CCCSKUs)
VAR __Result = CONCATENATEX(__Table,[__SKU],", ")
RETURN
__Result
@Adrpgs Try:
Measure =
VAR __SKUs = DISTINCT(SELECTCOLUMNS('Table',"__SKU",[SKU]))
VAR __CCCSKUs = DISTINCT(SELECTCOLUMNS(FILTER('Table',[Location] = "CCC"),"__SKU",[SKU]))
VAR __Table = EXCEPT(__SKUs, __CCCSKUs)
VAR __Result = CONCATENATEX(__Table,[__SKU],", ")
RETURN
__Result
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |