Forum Discussion
raphazzz
Helper I
3 years agoCalculate table is showing more rows than expected.
Friends, I created a calculated table with information from another table but applying some filters. But when I apply the same filters to the source table, I have different row counts. ...
- 3 years ago
You're missing a comma, and you've got a bracket in the wrong place.
WIP - Service Count Table = SELECTCOLUMNS ( FILTER ( SalesReport, SalesReport[Status] <> "Canceled" && SalesReport[Active] = "Yes" && SalesReport[Subscription] IN { "QUARTERLY", "BIMONTHLY", "MONTHLY" } ), "Customer ID", SalesReport[Customer ID], "Branch", SalesReport[Office], "Subs", SalesReport[Subscription], "Contract", SalesReport[Contract], "Date Sold", SalesReport[Date Sold], "Initial Service", SalesReport[Initial Service Date] )
raphazzz
Helper I
3 years agoI tried it but I'm getting an error now. Would you mind explaining it?
WIP - Service Count Table =
SELECTCOLUMNS (
FILTER (
SalesReport,
SalesReport[Status]<> "Canceled"
&& SalesReport[Active] = "Yes"
&& (SalesReport[Subscription] IN { "QUARTERLY", "BIMONTHLY", "MONTHLY" }
)
"Customer ID", SalesReport[Customer ID],
"Branch", SalesReport[Office],
"Subs", SalesReport[Subscription],
"Contract", SalesReport[Contract],
"Date Sold", SalesReport[Date Sold],
"Initial Service", SalesReport[Initial Service Date]
))
johnt75
Super User
3 years agoYou're missing a comma, and you've got a bracket in the wrong place.
WIP - Service Count Table =
SELECTCOLUMNS (
FILTER (
SalesReport,
SalesReport[Status] <> "Canceled"
&& SalesReport[Active] = "Yes"
&& SalesReport[Subscription] IN { "QUARTERLY", "BIMONTHLY", "MONTHLY" }
),
"Customer ID", SalesReport[Customer ID],
"Branch", SalesReport[Office],
"Subs", SalesReport[Subscription],
"Contract", SalesReport[Contract],
"Date Sold", SalesReport[Date Sold],
"Initial Service", SalesReport[Initial Service Date]
)