March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I have been breaking my head to find the solution. I have a list of assets. Need to count the assets if it only has the FIXED status and not having any other rows with different status, also with Patch Type OS. I need to display the count for each domain.
For example if you look at the below table. For Domain ABC we should M2 since it belongs to patch type OS and with status as Fixed. But M1 belongs to OS but it has both Active and Fixed status.
So healthy machine for ABC domain is 1.
Domain | Machine | Status | Patch Type |
ABC | M1 | Active | OS |
ABC | M1 | Active | OS |
ABC | M1 | Fixed | OS |
ABC | M1 | Fixed | OS |
ABC | M1 | Fixed | OS |
ABC | M2 | Fixed | OS |
ABC | M2 | Fixed | OS |
ABC | M2 | Fixed | OS |
ABC | M3 | Fixed | Hardware |
ABC | M3 | Fixed | Hardware |
ABC | M3 | Fixed | Hardware |
ABC | M3 | Fixed | Hardware |
ABC | M3 | Fixed | Hardware |
ABC | M3 | Fixed | Hardware |
Solved! Go to Solution.
You can create below measure. 'Table' is my table's name, replace it with yours.
Measure =
VAR vTable = FILTER('Table','Table'[Patch Type]="OS")
VAR vTable2 = SUMMARIZE(vTable,'Table'[Domain],'Table'[Machine],"All_Status",CONCATENATEX(VALUES('Table'[Status]),'Table'[Status],","))
RETURN
COUNTROWS(FILTER(vTable2,[All_Status]="Fixed"))
Then you can add a table visual in the report, put Domain column and this measure into it to show the count for each domain. See the attachment.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
You can create below measure. 'Table' is my table's name, replace it with yours.
Measure =
VAR vTable = FILTER('Table','Table'[Patch Type]="OS")
VAR vTable2 = SUMMARIZE(vTable,'Table'[Domain],'Table'[Machine],"All_Status",CONCATENATEX(VALUES('Table'[Status]),'Table'[Status],","))
RETURN
COUNTROWS(FILTER(vTable2,[All_Status]="Fixed"))
Then you can add a table visual in the report, put Domain column and this measure into it to show the count for each domain. See the attachment.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
@BI_Analyticz , Try a measure like
countx(filter(summarize(Table, Table[Domain], Table[Machine],"_1",, distinctCOUNT(Table[Status])), [_1]=1),[Machine] )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
66 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |