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.
Dear all
I am trying to get uniqle combintation of three columns from a table I created by applying DirectQuery from Redshift.
Yet, I have tried ALL/GROUPBY/SUMMERIZE but still cannot return a table with all unique combinations.
Any idea why? Thank you for your help in advance!
Solved! Go to Solution.
Hi @Anonymous ,
We can use two ways to meet your requirement.
count = COUNTROWS('table')
Table1 = FILTER(GROUPBY('table','table'[ProductName],'table'[ProductID],'table'[Country]),CALCULATE(COUNTROWS('table'))=1)
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Hi @Anonymous ,
We can use two ways to meet your requirement.
count = COUNTROWS('table')
Table1 = FILTER(GROUPBY('table','table'[ProductName],'table'[ProductID],'table'[Country]),CALCULATE(COUNTROWS('table'))=1)
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Hi @Anonymous ,
If you are using DirectQuery, can you change your query at the source to retun only distinct values of the 3 columns.
You can not do this after the loading of data.
Cheers
CheenuSing
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |