Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
User | Count |
---|---|
47 | |
26 | |
21 | |
17 | |
15 |
User | Count |
---|---|
53 | |
34 | |
17 | |
17 | |
15 |