Forum Discussion
kang990
2 years agoFrequent Visitor
Summarize table with zero
Hello, I have two tables as below: Sales Salesperson Date Category AAA 2023-01-02 BAT BBB 2023-03-03 TGA AAA 2023-03-03 TGA BBB 2023-03-03 TGA CCC 2023-04-23 BAT ...
ThxAlot
2 years agoSuper User
Cnt =
ADDCOLUMNS(
CROSSJOIN(
DISTINCT( Sales[Date] ),
DISTINCT( Salespersons[Salesperson] ),
DISTINCT( Sales[Category] )
),
"Cnt", CALCULATE( COUNTROWS( Sales ) ) + 0
)