Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I want to create a new table (Table A) based on colulms from another table (Table B).
In my table A I want only unique/distict values from Column A in Table B to be returned, like a pivot in excel.
How can I do that, I have tried with groupby and summarize, but now luck..
Thanks
Kristoffer
Solved! Go to Solution.
Both should provide unique values. I wonder if you have leading, or trailing spaces that need to be cleaned using TRIM
eg, if I have Table B with the following data
Country
----------
A
A
A
B
B
The output of the DAX I gave you should be
Country
------------
A
B
I have attached a PBIX file
You can create a calculated table using the following syntax
New Table = ALL('Table B'[Column A])
Or
New Table = SUMMARIZECOLUMNS('Table B'[Column A])
Hi @Phil_SeamarkI think I have tried this, but it wont return unique values.. For instance I column A was a country column, I only want United States to be returned once.
Do I do something wrong?
Both should provide unique values. I wonder if you have leading, or trailing spaces that need to be cleaned using TRIM
eg, if I have Table B with the following data
Country
----------
A
A
A
B
B
The output of the DAX I gave you should be
Country
------------
A
B
I have attached a PBIX file
Hi all,
i have seen your discussion and i have a similar situation but with one step further
on main table i have also a column like Sales; and i want to obtain a new table like yours, with unique values, but also with sum of Sales for each
is it posible?
Thanks,
Cosmin
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |