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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi again,
I have a pretty simple measure that counts the number of software assignements on an asset (
Hostname | SW Package | User |
123456 | Package 1 | Jane Doe |
123456 | Package 1 | John Doe |
123456 | Package 2 | Jane Doe |
123456 | Package 2 | John Doe |
User | SW Package Count |
Jane Doe | 4 |
John Doe | 4 |
How do I adjust the measure to count the occurences per asset and per user?
Something with Calculate, Counta and Filter? Not sure how to even approach this 🙂
Solved! Go to Solution.
maybe you can try this
Measure 2 = CALCULATE(COUNTROWS('Table (2)'),FILTER(all('Table (2)'),'Table (2)'[Hostname]=MAX('Table (2)'[Hostname])))
Proud to be a Super User!
like what @Hariharan_R said, COUNTA should return 2 for each user and 4 for total. please provide the expected output
Proud to be a Super User!
Hi
By defult it shows 2 only as a result. Please share the expected result for more clarity.
Thanks
Hari
Hi @Hariharan_R , @ryan_mayu
Hi @ryan_mayu ,
this still returns 4 per user when I would expect a total of 2 for each and an overall total of 4.
like what @Hariharan_R said, COUNTA should return 2 for each user and 4 for total. please provide the expected output
Proud to be a Super User!
maybe you can try this
Measure 2 = CALCULATE(COUNTROWS('Table (2)'),FILTER(all('Table (2)'),'Table (2)'[Hostname]=MAX('Table (2)'[Hostname])))
Proud to be a Super User!