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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi! I'm having trouble calculating how many different products a store has bought in a month. I'm currently using the following formula as in an example for august:
CALCULATE(
(DISTINCTCOUNT(Product[Product Code),
FILTER([Product], [#Sales]>0),
Date[Month/Year]="aug/2022")
It returns me how many different products the store has sold, but it is not considering in august. The number is always the same for every month i pick.
Solved! Go to Solution.
please try
=
COUNTROWS (
CALCULATETABLE (
VALUES ( 'Product'[Product Code] ),
CROSSFILTER ( 'Product'[Product Code], 'Sales'[Product Code], BOTH )
)
)
please try
=
COUNTROWS (
CALCULATETABLE (
VALUES ( 'Product'[Product Code] ),
CROSSFILTER ( 'Product'[Product Code], 'Sales'[Product Code], BOTH )
)
)