The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all, i have a table with the columns ID and Category. The goal is to create a new table that lists the IDs, and an index of the number of categorys an ID had in its lifetime.
Example:
Data Table
ID / Category
00001 / SWF Info
00001 / Response FOMA
00001 / Creditreform
00001 / Legal IKU
00001 / Bankcrupcy
Desiered Result should be:
ID / Index
00001 / 5
I tried this
Solved! Go to Solution.
Hi @Samuel7265 I am not familiar with your model, if it is simply like your example with 2 columns, possible solution could be measeure
Replace Sheet1 (2) with your table name. Hope this help
Proud to be a Super User!
Hi @Samuel7265 It seems you need to use DISTINCTCOUNT function over your column Category?
Check link below.
Did I answer your question? Mark my post as a solution! Kudos Appreciated!
https://learn.microsoft.com/en-us/dax/distinctcount-function-dax?WT.mc_id=DP-MVP-4025372
Proud to be a Super User!
Thanks for your answer. DISTINCTCOUNT cant be used in the context of GROUPBY().
Hi @Samuel7265 I am not familiar with your model, if it is simply like your example with 2 columns, possible solution could be measeure
Replace Sheet1 (2) with your table name. Hope this help
Proud to be a Super User!
Hi @Samuel7265 If this is solution, please accept it so other member of community could use it. Thank you
Proud to be a Super User!
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
69 | |
37 | |
21 | |
18 | |
15 |
User | Count |
---|---|
124 | |
39 | |
30 | |
24 | |
22 |