We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
i have my data as follows
| Case Number | Procedure code |
| 1505 | SN21 |
| 1505 | SN21 |
| 1505 | SN23 |
| 1508 | SN21 |
| 1508 | MR28 |
| 1509 | SN21 |
| 1510 | MR28 |
| 1511 | SN23 |
| 1512 | SN23 |
| 1509 | SN21 |
| 1513 | SN21 |
| 1513 | SN21 |
I am trying to create a measure that counts unique "CaseNumbers" that are carrying "SN21" procedure Code.
(or)
Count of CaseNumbers that has SN21 procedure code repeated twice.
Solved! Go to Solution.
@Anonymous
You can use this measure:
Unique Case Numbers =
CALCULATE(
DISTINCTCOUNT(Table[Case Number]),
Table[Procedure code] = "SN21"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Try this:
Unique Case Numbers =
CALCULATE(
COUNT(Table2[Case Number]),
Table2[Procedure code] = "SN21"
)
-
CALCULATE(
DISTINCTCOUNT(Table2[Case Number]),
Table2[Procedure code] = "SN21"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
You can use this measure:
Unique Case Numbers =
CALCULATE(
DISTINCTCOUNT(Table[Case Number]),
Table[Procedure code] = "SN21"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Is there any way to use this expression to subract the SN21 procedure total count - SN21 procedure distinct ocunt!!
@Anonymous
Try this:
Unique Case Numbers =
CALCULATE(
COUNT(Table2[Case Number]),
Table2[Procedure code] = "SN21"
)
-
CALCULATE(
DISTINCTCOUNT(Table2[Case Number]),
Table2[Procedure code] = "SN21"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |