Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Given the below, I would like the result to be two columns, with distinct contractnbrs in 1 column and the coresponding leasenumbers in another. I only want one of each leasenumber, and no blanks. I have tried groupby, but obviously don't know how to use it as it complains about the duplicate values in contractnbr.
Thanks in advance for your help.
Hi, @jileigh
try below code
Measure 3 = IF(
ISINSCOPE(Table1[contractor]),
CONCATENATEX (
CALCULATETABLE ( VALUES ( Table1[leasenumber] ) ),
Table1[leasenumber],
", " ,
Table1[leasenumber]
,ASC
),
BLANK()
)
@jileigh, Try this code in a calculated table,
New_Table =
VAR _summarize = SUMMARIZE('Table','Table'[contractnbr],"leasenumber",MIN('Table'[leasenumber]))
RETURN _summarize
Regards,
Shalini
It says the syntax for 'RETURN' is incorrect.
Also, need ALL the leasenumbers for each contractnbr.
Hi @jileigh ,
How about this:
Table 2 = SUMMARIZE ( 'Table', 'Table'[contractbr], "MaxLeaseNumber", MAX ( 'Table'[leasenumber] ) )
You might need to change the aggregate function to your needs (max, min etc.)
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
No, I need all the distinct leasenumbers.
User | Count |
---|---|
84 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
106 | |
93 | |
85 | |
67 |