HI ,
I am having issues with using DISTINCTCOUNT /COUNTROWS function for my tabular model. Both of them are giving memory related errors. The Fact Table has 500k records and the AggMeasure is an existing measure.
I need to just find the distinct count of Materials where AggMeasure>0 based on user filtering. Is this possible? Please help
Coverage:=CALCULATE(DISTINCTCOUNT('Material'[ID]),FILTER('Fact',[AggMeasure]>0))
Coverage2:=
COUNTROWS(SUMMARIZE(FILTER('Fact',[AggMeasure]>0),'Material'[ID]
))
Solved! Go to Solution.
@gardas_swathi , Try
COUNTROWS(FILTER(Values('Fact'Material'[ID]'),[AggMeasure]>0)
)
@gardas_swathi , Try
COUNTROWS(FILTER(Values('Fact'Material'[ID]'),[AggMeasure]>0)
)
Thanks Amit. That worked