Forum Discussion
Help with visualization
- 3 years ago
This depends on the structure of your data. If you had a table with the items that have been purchased, and a list of all items, you could do something like:
CALCULATE( COUNTROWS( EXCEPT(SELECTCOLUMNS([all_items]), SELECTCOLUMNS([purchased_items]) ) )(note: i haven't tested this code) But the idea is that you want to get all of items that haven't been purchased and then ignore all of the ones that have been purchased. Here's the docs on the EXCEPT function: https://learn.microsoft.com/en-us/dax/except-function-dax
This depends on the structure of your data. If you had a table with the items that have been purchased, and a list of all items, you could do something like:
CALCULATE(
COUNTROWS(
EXCEPT(SELECTCOLUMNS([all_items]), SELECTCOLUMNS([purchased_items])
)
)(note: i haven't tested this code) But the idea is that you want to get all of items that haven't been purchased and then ignore all of the ones that have been purchased. Here's the docs on the EXCEPT function: https://learn.microsoft.com/en-us/dax/except-function-dax