Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello, How do I perform a count of the Cons group in each specific reporting unit. The output I am trying to achieve is in green:
Solved! Go to Solution.
pls add all(), and have a try on below DAX.
calculate(distinctcount[consgroup],filter(ALL(table),[reportingunit]=max([reportingunit]))
Proud to be a Super User!
maybe try
calculate(distinctcount[consgroup],filter(table,[reportingunit]=max([reportingunit]))
Proud to be a Super User!
pls add all(), and have a try on below DAX.
calculate(distinctcount[consgroup],filter(ALL(table),[reportingunit]=max([reportingunit]))
Proud to be a Super User!
you are welcome
Proud to be a Super User!
@gracie494 Perhaps:
Measure =
VAR __RU = MAX('Table'[Reporting Unit])
VAR __CG = MAX('Table'[ConsGroup])
RETURN
COUNTROWS(FILTER(ALL('Table'),[Reporting Unit]=__RU && [ConsGroup]=__CG))
@gracie494 , Try
a New column
= calculate(distinctcount(Table[ConsGroup]), filter(Table, [ reporting unit] =earlier([ reporting unit])))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.