The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi, Consider a table
Date | ID | Type |
21/09/2022 | A | S |
21/09/2022 | A | B |
21/09/2022 | B | S |
21/09/2022 | C | S |
Need a measure to calculate the distinct count of ID if there is only Type = S date wise
It counts other IDs as well. I need only the Distinct Count of those IDs containing Type = "S" only not other than "S"
Try this:
Count = CALCULATE(DISTINCTCOUNT(Table[ID]), Table[Type] = "S")
Then put it in a table together with the date field to see by date.
For Example:
If the ID has 2 entries containing Type "S" & "B" then it should be excluded from the required distinct count
If the ID has 2 Entries containing Type "S" & "S" then it should be counted
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
79 | |
78 | |
39 | |
36 |
User | Count |
---|---|
158 | |
111 | |
64 | |
59 | |
54 |