Forum Discussion
Get a count of missing/void data
- 6 years ago
Hi tnelson ,
In your scenario, we can create calculate table using DAX to show the missing customer and product/Flavor.
MissProduct = EXCEPT ( CROSSJOIN ( VALUES ( 'Table'[Customer] ), VALUES ( 'Table'[Product] ) ), SELECTCOLUMNS ( 'Table', "Customer", 'Table'[Customer], "Product", 'Table'[Product] ) )MissFlavor = EXCEPT ( CROSSJOIN ( VALUES ( 'Table'[Customer] ), VALUES ( 'Table'[Flavor] ) ), SELECTCOLUMNS ( 'Table', "Customer", 'Table'[Customer], "Product", 'Table'[Flavor] ) )Then you can create the report or advanced measure based on these tables.
If it still doesn't meet your requirement, kindly share your excepted result to me using the fake sample data. Please upload your files to One Drive and share the link here.
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Hi tnelson ,
In your scenario, we can create calculate table using DAX to show the missing customer and product/Flavor.
MissProduct =
EXCEPT (
CROSSJOIN ( VALUES ( 'Table'[Customer] ), VALUES ( 'Table'[Product] ) ),
SELECTCOLUMNS (
'Table',
"Customer", 'Table'[Customer],
"Product", 'Table'[Product]
)
)
MissFlavor =
EXCEPT (
CROSSJOIN ( VALUES ( 'Table'[Customer] ), VALUES ( 'Table'[Flavor] ) ),
SELECTCOLUMNS (
'Table',
"Customer", 'Table'[Customer],
"Product", 'Table'[Flavor]
)
)
Then you can create the report or advanced measure based on these tables.
If it still doesn't meet your requirement, kindly share your excepted result to me using the fake sample data. Please upload your files to One Drive and share the link here.
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
I copied and pasted that formula and put my own data in and received an error:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Any ideas on why I would receive that error and you don't?
- v-lid-msft6 years agoCommunity Support
Hi tnelson ,
I guess that you create a measure using those formula? Actually I created a calculated table.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.