Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi, I have a table that is linked to another table through a key, and now I need to do some grouping in the first table to do some later visualization. However, after I do the groupby, the key is no longer included in the table and it became disconnected from the rest of tables. What should I do to keep the key (link) while grouping without the key...?
You either need to include the Key column in the GROUPBY group area or include it in the columns area like:
GROUPBY(
'Table',
[Some column],
[Key],
"Some aggregation",SUMX(CURRENTGROUP(),[Column])
)
or
GROUPBY(
'Table',
[Some column],
"Key",MAXX(CURRENTGROUP(),[Key])
)
Thank you. ... However, where is EARLIER in the codes? And what do you mean by som column and some aggregation?
Oh, never mind about the EARLIER, that's just a joke, it is in my signature.
You didn't provide sample data so I wasn't sure what kinds of columns and such I was dealing with so I just used place holders.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Thanks. I found a way to circumvent the problem... but I dont have a solution to the problem yet. Let me prepare the dataset and edit the question later...
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
98 | |
38 | |
37 |
User | Count |
---|---|
154 | |
120 | |
73 | |
73 | |
63 |