Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
52 | |
46 | |
15 | |
12 |