Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I want to do this:
SELECT Distinct(column1), column2
FROM table1
WHERE column2 is not null
I know how to do distinct:
FILTER(DISTINCT('DASHBOARD'[CYM_Name]), NOT ISBLANK ( 'DASHBOARD'[CYM_Name]))
I know how to do summarize column:
SUMMARIZE(FILTER('DASHBOARD', NOT ISBLANK ( 'DASHBOARD'[CYM_Name]))
,'DASHBOARD'[SYW],'DASHBOARD'[CYM_Name])
But I want to use DISTINCT instead of summarize. Is that possible? or is summarize the only way you can distinct and then bring another column.
Solved! Go to Solution.
Hi @samnaw ,
My sample data table.
Column1Column2
A | x1 |
A | x2 |
A | |
B | x3 |
B | x4 |
C | x5 |
D | |
D |
In Database
In Power BI Desktop
If it's not right, please show me the sample data and expected output.
It should be possible to use the DISTINCT() function, but your [Column2] has no aggregation, which confuses me.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @samnaw ,
My sample data table.
Column1Column2
A | x1 |
A | x2 |
A | |
B | x3 |
B | x4 |
C | x5 |
D | |
D |
In Database
In Power BI Desktop
If it's not right, please show me the sample data and expected output.
It should be possible to use the DISTINCT() function, but your [Column2] has no aggregation, which confuses me.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
36 |